SW-AG: Local Context Matching for English Lexical Substitution
Paper · 2007 · George Dahl, Anne-Marie Frassica and Richard Wicentowski
Summary
The paper describes two unsupervised, knowledge-light systems for the SemEval-2007 English lexical substitution task. Each system proposes ten suitable replacements for a marked word in a sentence. The authors use a "direct" approach and avoid choosing a word sense first. They build a substitution lexicon from Roget's New Millennium Thesaurus (RT), keeping only entries that match the target exactly and removing rare candidates using Web 1T 5-gram unigram counts. The first system, SWAG1, ranks candidates by how often the trigrams around the target, with the candidate swapped in, occur in Web 1T. Each trigram's contribution is normalized. The second system, SWAG2, adds a cosine nearest-neighbour model built on British National Corpus sentences. It uses thesaurus "senses" only to filter candidates and picks the best model per part of speech. SWAG2 scored higher on the out-of-ten metric, with precision 37.80 against 35.53. The results suggest that substitution can work well without explicit sense disambiguation.
Key points
- On trial data, the oracle maximum recall was 53% with a WordNet-synset lexicon and 85% with RT. Dropping the least frequent third of candidates lowered this ceiling to 75% but clearly improved precision.
- LCM draws on as many as three trigrams from the test sentence that include the target word. It discards those without another content word, using the NLTK-Lite tagger, and matches the rest against more than 967 million unique Web 1T trigrams after lemmatization.
- Filtering by sense raised nearest-neighbour accuracy from .41 to .44. Keeping only the top-ranked sense for nouns raised LCM noun accuracy from .51 to .57, counting only instances with a mode.
- The combined system was assembled per part of speech. Filtered LCM was used for nouns and adjectives, filtered nearest-neighbour for adverbs, and the combined voter for verbs.
- OOT results were P 35.53 / R 32.83 / Mode P 47.41 for SWAG1 and P 37.80 / R 34.66 / Mode P 50.18 for SWAG2. Both systems did better on instances where annotators agreed on a mode.
Interesting ideas
- I1. Before tuning a ranker, measure the oracle ceiling of the candidate generator, meaning the share of gold answers that are reachable at all, because that limit caps every later stage.
- I2. Test a candidate by swapping it into the actual local word context and checking whether the result is attested in a large corpus. Normalize per context so that one very frequent trigram does not dominate the decision.
- I3. Discard context windows that contain only function words besides the target, since they carry almost no evidence and only add noise.
- I4. Use sense information as a filter on directly generated candidates rather than as a required first decision, which avoids problems when the sense inventory is too fine or too coarse.
- I5. Prune rare, obscure alternatives by corpus frequency, accepting a lower recall ceiling in exchange for choices humans would actually make.
For Mova
How these ideas could serve Mova, our small open language model — its files, stages and tests:
- I1 (learn): Evaluations could report, for each stage, how much of the gold remains reachable from the previous stage's candidates, for example correct heads among the parser's options. Failures would then be split into generation misses and ranking misses.
- I2 (world): When choosing among WordNet synonyms or ontology labels for an entity, an explainable swap-and-check score against n-gram counts could justify the choice with concrete attested contexts.
- I3 (frames): When scoring VerbNet class or role candidates from nearby words, the evidence could be limited to windows containing a content word, so that weak cues do not outweigh informative ones.
- I4 (frames): VerbNet or FrameNet classes could prune frame candidates proposed directly from the UD tree, without forcing one sense choice up front.
- I5 (back): When generating text from the meaning graph, the system could prefer frequent lexicalizations of a concept so that paraphrases read naturally.
Institutions
Fields, topics and concepts
📚 Shelves 4The field of science this work belongs to (OpenAlex fields).Computer Science · 16,667 worksArtificial Intelligence · 16,194 worksArts and Humanities · 16,039 worksLanguage and Linguistics · 15,891 works
🧭 Topics 1Research subjects and languages the work is about.English · 2,263 works
Cite
Cite as George Dahl, Anne-Marie Frassica and Richard Wicentowski. 2007. SW-AG: Local Context Matching for English Lexical Substitution. Proceedings of the Fourth International Workshop on Semantic Evaluations (SemEval-2007).
@inproceedings{dahl2007sw,
title = {{SW-AG: Local Context Matching for English Lexical Substitution}},
author = {George Dahl, Anne-Marie Frassica and Richard Wicentowski},
booktitle = {Proceedings of the Fourth International Workshop on Semantic Evaluations (SemEval-2007)},
year = {2007},
doi = {10.3115/1621474.1621540},
url = {https://doi.org/10.3115/1621474.1621540}
}References
- R.H. Baayen, R. Piepenbrock, and L. Gulikers. 1996. CELEX2. LDC96L14, Linguistic Data Consortium, Philadelphia. find
- T. Brants and A. Franz. 2006. Web 1T 5-gram, ver. 1. LDC2006T13, Linguistic Data Consortium, Philadelphia. find
- I. Dagan, O. Glickman, A. Gliozzo, E. Marmorshtein, and C. Strapparava. 2006. Direct word sense matching for lexical substitution. In Proceedings of the 44th Annual Meeting of the Association for Computational Linguistics. find
- D. Lin and P. Pantel. 2001. Induction of semantic classes from natural language text. In Proceedings of the 7th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining. find
- D. Lin. 1998. Automatic retrieval and clustering of similar words. In Proceedings of the 36th Annual Meeting of the Association for Computational Linguistics.
- E. Loper and S. Bird. 2002. NLTK: The Natural Language Toolkit. In Proceedings of the ACL-02 Workshop on Effective Tools and Methodologies for Teaching Natural Language Processing and Computational Linguistics. ↗
- D. McCarthy and R. Navigli. 2007. SemEval-2007 Task 10: English lexical substitution task. In Proceedings of SemEval-2007.
Updated
This page in Markdown → https://md.research.elamur.ai/free/en/papers/dahl-2007-sw-ag-local-context-matching/