Marymount University Programming Structure Paper
Question Description
- Use given script to download 1 Wikipedia page (not Marymount)
- Run NLTKs NER tool.
- Examine both the PERSON and LOCATION Entities
- Calculate Precision, Recall, and F-Measure for both Person or Location (whichever your document has)
pip install pymediawiki
To Harvest WIKI
from mediawiki import MediaWiki
wikipedia = MediaWiki()
p = wikipedia.page('Marymount University')
content= p.content
print(content)
To Tag Named Entities
1) Word Tokenize a Sentence
2) POS tag the tokens
3) print(nltk.ne_chunk(tagged))
Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."