JUNEAU, Alaska (AP) - A former Alaska legislator accused of hitting a woman hard enough to rupture her eardrum has pleaded guilty to a misdemeanor harassment charge.

State District Court Judge Kirsten Swanson sentenced Zach Fansler to one year of probation, restitution and community service. He also must undergo an alcohol assessment program and follow any treatment recommendations.

Swanson said Fansler has faced other consequences for his actions, saying his political career is likely over. But she said it's not OK to hit someone.

Prosecutors say Fansler and the woman went to his hotel room after a night of drinking in January. The charging document said the two began to engage in "consensual sexual activity," when Fansler, without permission or warning, slapped the woman in the head.

In a victim impact statement, the woman Fansler struck denied claims he had previously made linking the assault to rough sex.

Fansler's attorney said the evidence suggested some level of consent.

Steve Quinn contributed information to this story.

Copyright 2018 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.

RELATED STORIES:

Dept. of Law says ex-lawmaker, Fansler, to plead to harassment count 

State Rep. Fansler resigns after alleged attack 

House takes measures against Fansler after alleged assault