A homeless man in Cincinnati accused of attacking a woman who appeared to be sleepwalking has pleaded guilty to charges of rape and felonious assault and has been sentenced to 10 years in prison.

Fifty-three-year-old Dexter Ford initially was charged with kidnapping, felonious assault, attempted rape and two counts of rape, carrying a maximum prison sentence of 46 years in prison. His trial was to begin Tuesday.

As part of a plea deal, Ford pleaded guilty to one count of rape and one count of felonious assault. Another count of rape, one count of attempted rape and one count of kidnapping were dropped, FOX affiliate WXIX reported.

Prosecutors say the 24-year-old victim is a severe epileptic who sometimes seems confused after an intense seizure. Witnesses told police in November that they saw Ford assault the woman while she was walking near Interstate 71 in Cincinnati.

Ford has been diagnosed with schizophrenia and is HIV positive.

Click here for more from WXIX.