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

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -