arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1808.04891cs.CL
收藏

嵌入语法

Embedding Grammars

David Wingate, William Myers, Nancy Fulda, Tyler Etchart

摘要:

经典语法和正则表达式可用于各种目的,包括解析、意图检测和匹配。但是,比较是在结构级别执行的,组成元素(单词或字符)完全匹配。词嵌入的最新进展表明,语义相关的词在向量空间表示中具有共同的特征,这表明混合语法和词嵌入的可能性。在本文中,我们将标准上下文无关文法的结构与词嵌入的语义泛化能力相结合,以创建混合语义文法。这些语义语法将程序员使用的特定终端推广到具有相关含义的其他单词和短语,允许构建匹配向量空间的整个区域而不是匹配特定元素的紧凑语法。

英文摘要:

Classic grammars and regular expressions can be used for a variety of purposes, including parsing, intent detection, and matching. However, the comparisons are performed at a structural level, with constituent elements (words or characters) matched exactly. Recent advances in word embeddings show that semantically related words share common features in a vector-space representation, suggesting the possibility of a hybrid grammar and word embedding. In this paper, we blend the structure of standard context-free grammars with the semantic generalization capabilities of word embeddings to create hybrid semantic grammars. These semantic grammars generalize the specific terminals used by the programmer to other words and phrases with related meanings, allowing the construction of compact grammars that match an entire region of the vector space rather than matching specific elements.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑