python - Transforming a text from first-person to third-person -
i transform big string - written in first-person perspective - third-person one. such as:
i happy. went swimming pool friend.
to
he happy. went swimming pool friend.
i've searched library (any language - python preferred) could not find any.
does such libraries exist?
if there no such library, idea following:
- use simple regular expression change 'i' 'he'
- use nltk grammar check text , correct verbs can fit third-person
does seems 'proper' solution?
Comments
Post a Comment