Natural Language Processing · M2 · mocks

Q5 (3 marks)

M2 Mock B · unseen pairs & decoding

M2 · confirmed 2 + 2 + any two of 3 + 3 + 3 · worked practice

Q5

Apply simplified Lesk to “bank” with preprocessed context {river, water, flooded}. Gloss R is {sloping, land, river, water}; gloss F is {financial, institution, money, loan}. (3 marks)

Given

Two already preprocessed gloss sets and one context set.

To find

Overlap scores and selected sense.

Formula and why it applies

\text{score}(s)=|\text{context}\cap\text{gloss}(s)|LaTeX: \text{score}(s)=|\text{context}\cap\text{gloss}(s)|

Simplified Lesk chooses the sense whose gloss shares the largest number of context words, using the specified set-overlap convention.

Solution

Step 1. Intersect the river gloss

{river, water, flooded} ∩ {sloping, land, river, water} = {river, water}.

Step 2. Count the river overlap

score(R)=2LaTeX: score(R)=2

Step 3. Intersect and count the financial gloss

No shared words; intersection is empty, so score(F)=0.

Step 4. Compare

2 > 0, hence select the river-bank sense.

River-bank sense, with overlap 2 versus 0.