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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -