A hostel warden in North Tripura was sentenced to 20 years in prison for repeatedly sexually assaulting a 12-year-old student, police said.