Parts of Speech Tagger
Parts of Speech Tagger
definition-
Machine learning is an application of artificial intelligence (AI) that provides systems
the ability to automatically learn and improve from experience without being
explicitly programmed.
Applications
1. Virtual Personal Assistants. Siri, Alexa, Google Now are some of the popular examples of virtual personal assistants.
2. Social Media Services.(facebook)
3. Email Spam and Malware Filtering.
4. Online Customer Support.
5. Search Engine Result Refining.
6. Product Recommendations.
Challenges faced-
'first_word': i == 0,
'capitalized':sentence[i][0].upper() == sentence[i][0],
'numeric': sentence[i].isdigit(),
'suffix(1)': sentence[i][-1],
'prefix(1)': sentence[i][0]}
return features
How have we solved our problem--
nltk.download('brown')
nltk.download('tagsets')
nltk.download('universal_tagset')
lines = brown.sents(categories='news')
feature= []
feature.append((Feature_Extraction(sentence, i)))
tagged_sents = brown.tagged_sents(categories='news', tagset='universal') #to untag all
the sentences which are tagged and the appending it to the featureset
featureset = []
untagged_sent = nltk.tag.untag(tagged_sent)
print(Feature_Extraction(brown.sents()[0], 9,))
accuracy=nltk.classify.accuracy(classifier, test_set)
1.http://www.nltk.org/book/ch06.html#ref-document-classify-all-words.
3.https://docs.python.org/3/library/stdtypes.html.(python documentation)
THANK YOU