A professor at the University of Central Florida was arrested for stalking a doctoral student after allegedly sending her more than 800 messages a day, including one that read: “You should be happy that somebody likes you this much to stalk you.”

Ali Borji, 39, was collared late Thursday at his office in the university’s Department of Computer Science. The assistant professor was later charged with two misdemeanor counts of stalking, the Orlando Sentinel reports.

After meeting the alleged victim last summer as she worked toward her Ph.D., Borji sent her a message via Facebook offering to help her with her studies, she told university police. The woman and Borji then went on a few dates before she told him that their relationship wouldn’t be getting physical, police said.

But Borji refused to accept that, stalking the woman during the fall 2017 and spring 2018 semesters, sometimes sending hundreds of text messages per day, including some characterized by the victim as “extremely disturbing,” WKMG reported.

“You should be happy that somebody likes you this much to stalk you,” one message read, according to an arrest report.

“You think I am sick and I may be!” Borji allegedly wrote in another twisted text. “But I still love you.”

Borji also told the woman he wanted to create an artificial intelligence-generated copy of her so he “could do anything he wanted,” police said.

The woman pleaded with Borji to stop in one email exchange from October 2017, warning him that she’d report him to police if the missives didn’t end immediately.

“Please listen to me!” Borji replied. “We are just one step away from eternal happiness! [Let’s] just try one more time please.”

The incessant messaging later spread to the woman’s family, with Borji professing his love to her relatives, police said. The woman then left UCF in fall 2017 and moved out of state before returning for the spring 2018 semester, WKMG reported.

The woman told police on Tuesday that she spotted Borji following her in his car as she left a gym, according to an arrest report that quoted Borji as telling university police that it was acceptable “in his culture” to keep talking to the woman despite her requests for him to stop.

Borji also did not deny sending the messages and said he would apologize if given the chance, according to the Orlando Sentinel.

Borji, who has worked at UCF since January 2016, has submitted his resignation, effective July 1, a university spokesman told The Post in an email. He has since been banned from campus.

“Our detectives acted swiftly in this case, as the UCF Police Department does when anyone feels threatened,” spokesman Mark Sclueb said in a statement. “We have zero tolerance for this type of behavior.”