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

java - BeanIO write annotated class to fixedlength -

Using Java 8 lambdas/transformations to combine and flatten two Maps -

How to connect android app to App engine -