Yes, you can still claim it as a rental while it was undergoing repairs, if your intent was for the property to remain a rental. You would claim the repairs the same way you claim other expenses for a rental, as repairs and maintenance. Since the repairs took more than a year, it raises the question of whether some, or all of the expenditures for "repairs" are improvements, or repair and maintenance expenses. If improvements, they need to be capitalized and depreciated.
how do i enter repairs for property if there is no rental income for the year?