You are on page 1of 3

Module 2: Lesson 3 and 4 Assessment

Name: LOUIE UDSIG


Section: BSCS 2-D

POS and NER Assessment


1. Create a Doc object from the file peterrabbit.txt
HINT: Use with open(‘../TextFiles/peterrabit.txt’) as f:
Provide a working screen shot in a jupyter environment to the problem here:

2. For every token in the third sentence, print the token text, the POS tag, the fine-
grained TAG tag, and the description of the fine-grained tag.
Provide a working screen shot in a jupyter environment to the problem here:

3. Provide a frequency list of POS tags from the entire document


Provide a working screen shot in a jupyter environment to the problem here:
4. What percentage of tokens are nouns?
HINT: the attribute ID for ‘NOUN’ is 91
Provide a working screen shot in a jupyter environment to the problem here:

5. Display the Dependency Parse for the third sentence


Provide a working screen shot in a jupyter environment to the problem here:

6. Show the first two named entities from Beatrix Potter’s *The Tale of Peter Rabbit
Provide a working screen shot in a jupyter environment to the problem here:

7. How many sentences are contained in The Tale of Peter Rabbit?


Provide a working screen shot in a jupyter environment to the problem here:
8. How many sentences contain named entities?
Provide a working screen shot in a jupyter environment to the problem here:

9. Display the Named entity visualization for the list_of_sents[0] from the previous
problem
Provide a working screen shot in a jupyter environment to the problem here:

You might also like