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:

  1. use simple regular expression change 'i' 'he'
  2. use nltk grammar check text , correct verbs can fit third-person

does seems 'proper' solution?


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -