November 2016
Beginner to intermediate
687 pages
15h 31m
English
Here are the answers to the questions posed in the above sections:
No; If we remove the stop words, we will lose the context, and some of the POS taggers (Pre-Trained model) use word context as features to give the POS of the given word.
We can get all the verbs in the sentence by using pos_tag
>>>tagged = nltk.pos_tag(word_tokenize(s)) >>>allverbs = [word for word,pos in tagged if pos in ['VB','VBD','VBG'] ]
Yes. We can modify the code of the hybrid tagger in the N-gram tagger section to work with the Regex tagger:
Read now
Unlock full access