Site icon Doc Sity

Marymount University Programming Structure Paper

Marymount University Programming Structure Paper

Question Description

  1. Use given script to download 1 Wikipedia page (not Marymount)
  2. Run NLTK’s NER tool.
  3. Examine both the PERSON and LOCATION Entities
  4. 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."

Exit mobile version