Skip to content
conftrace_
2022 ACL ACL 2022

Language Models as Context-sensitive Word Search Engines

AbstractContext-sensitive word search engines are writing assistants that support word choice, phrasing, and idiomatic language use by indexing large-scale n-gram collections and implementing a wildcard search. However, search results become unreliable with increasing context size (e.g., n>=5), when observations become sparse. This paper proposes two strategies for word search with larger n, based on masked and conditional language modeling. We build such search engines using BERT and BART and compare their capabilities in answering English context queries with those of the n-gram-based word search engine Netspeak. Our proposed strategies score within 5 percentage points MRR of n-gram collections while answering up to 5 times as many queries.

🌉 Interdisciplinary Bridge - Artificial Intelligence and Natural Language Processing

More from ACL 2022

All ACL 2022 papers →