Convert the word " I'm"
to "I am"
and similarly "How're"
to "How are"
using python. I used lemmatization for this but did not get adequate results. I used the following code:
sen="You are great, My Lord. I'm studying with co-workers. How're you?"
all_words=regexp_tokenize(sen, "[\w']+")
lemmatiser = WordNetLemmatizer()
all_words_lem=[]
for i in all_words:
x=lemmatiser.lemmatize(i, pos="v")
all_words_lem.append(x)