nlp + chatbots workshop at tandon

textblob: wrapper for nltk

from textblob import TextBlob
blob = TextBlob(“paragraph here”)

nouns = list()
for word, tag in blob.tags:
if tag == “NN”:
noun.append(word.lemmatize())
word = Word(item)
print(word.pluralize())

blob.sentences
blob.words
blob.tags

Word(“octopi”).lemmatize()

.pluralize()

Leave a Reply

Your email address will not be published. Required fields are marked *