# Q3b · Penn Treebank tagging

Subject: Natural Language Processing

Exam: TEE

Reader: https://deep-learning-study-room.vercel.app/nlp/#tee/papers/legacy-f22/q3b

Canonical: https://deep-learning-study-room.vercel.app/read/nlp/tee/papers/legacy-f22--q3b/

Previous examination · complete worked answers

**Question. Using Penn Treebank tags, tag every word and ignore punctuation: (1) It is a nice night. (2) This crap game is over a garage in Fifty-second Street. (3) Nobody ever takes the newspapers she sells. (4) I am sitting in Mindy’s restaurant putting on the gefilte fish, which is a dish I am very fond of. (5) What flights do you have from Milwaukee to Tampa?** [10 marks]

### Answer

Read the role of each word in its sentence. Split possessive ’s into POS; punctuation has no requested tag. The original supplies a Penn-tag annex.

### Sentence 1

`It/PRP is/VBZ a/DT nice/JJ night/NN`

### Sentence 2

`This/DT crap/NN game/NN is/VBZ over/IN a/DT garage/NN in/IN Fifty-second/JJ Street/NNP`

### Sentence 3

`Nobody/NN ever/RB takes/VBZ the/DT newspapers/NNS she/PRP sells/VBZ`

### Sentence 4

`I/PRP am/VBP sitting/VBG in/IN Mindy/NNP ’s/POS restaurant/NN putting/VBG on/RP the/DT gefilte/JJ fish/NN which/WDT is/VBZ a/DT dish/NN I/PRP am/VBP very/RB fond/JJ of/IN`

### Sentence 5

`What/WDT flights/NNS do/VBP you/PRP have/VB from/IN Milwaukee/NNP to/IN Tampa/NNP`

| Tag | Meaning | Why here |
| --- | --- | --- |
| PRP | Personal pronoun | It, I, she, you |
| DT / WDT | Determiner / wh-determiner | a/the versus What before flights; which relative modifier |
| VB/VBP/VBZ/VBG | Base/non-3sg-present/3sg-present/gerund-participle | have after do; am/do; is/takes; sitting/putting |
| NN/NNS/NNP | Common singular/plural/proper noun | game/newspapers/Milwaukee |
| IN/RP | Preposition or subordinator / particle | in/over/from; on in the idiomatic putting on reading |
| JJ/RB/POS | Adjective/adverb/possessive ending | nice/very/’s |

Annotation ambiguities: “crap” is a noun adjunct under NN; an adjectival analysis can use JJ. “Fifty-second” may be NNP within an official street name instead of JJ; “gefilte” can be a noun adjunct in some taggers. Explain the chosen contextual reading rather than claiming all taggers must agree.

**Source / convention note.** Context-sensitive tags and possessive tokenization are explicitly stated; reasonable corpus guidelines can differ on noun adjuncts.
