textblob_ex.py 179 B

123456789
  1. from textblob import TextBlob
  2. from textblob.blob import Word
  3. wiki = TextBlob("Your name is Nestor. Do you understand me?")
  4. print(wiki.tags)
  5. w = Word("octopi")
  6. w.singularize()()