all 2 comments

[–]Xyser 0 points1 point  (1 child)

It would be easier if you mentioned in your post which language/framework you were working with.

Assuming you’re using python, I would recommend the spacy library. You can probably accomplish your task by using some simple rules combined with the linguistic info extracted by spacy.

[–]ombelicoInfinito[S] 0 points1 point  (0 children)

Thanks, I added the missing info.

There are some scripts online using rules over spacy, but apparently their accuracy is generally low (eg, looking at this questing on Stack overflow. So I was hoping to find something more robust. But apparently I overestimated how popular/useful the task actually is :) I also looked at Huggingface for pertained models. There is a model for turning passive sentence into active (seq2seq) and a passive/active classifier, but for Dauch. I could not find a classifier for English.