from textblob import TextBlob
import nltk
nltk.download('punkt')
nltk.download('brown')
nltk.download('averaged_perceptron_tagger')
nltk.download('wordnet')
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-376104f70224> in <module>()
----> 1 from textblob import TextBlob
      2 import nltk
      3 nltk.download('punkt')
      4 nltk.download('brown')
      5 nltk.download('averaged_perceptron_tagger')

ModuleNotFoundError: No module named 'textblob'
string = 'Virgin and child with two angels musicians meets George Washington'

blob = TextBlob(string)
blob.words
WordList(['Virgin', 'and', 'child', 'with', 'two', 'angels', 'musicians', 'meets', 'George', 'Washington'])
blob.tags
[('Virgin', 'NN'),
 ('and', 'CC'),
 ('child', 'NN'),
 ('with', 'IN'),
 ('two', 'CD'),
 ('angels', 'NNS'),
 ('musicians', 'NNS'),
 ('meets', 'NNS'),
 ('George', 'NNP'),
 ('Washington', 'NNP')]
blob.noun_phrases
WordList(['angels musicians'])
blob.words[0].synsets
[Synset('virgin.n.01'),
 Synset('virgo.n.01'),
 Synset('virgo.n.03'),
 Synset('virgin.s.01'),
 Synset('pure.s.07')]