arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1903.00724cs.CLcs.LG
收藏

预测和解释下游任务中词汇表外单词的嵌入

Predicting and interpreting embeddings for out of vocabulary words in downstream tasks

Université Laval(拉瓦尔大学)

Nicolas Garneau, Jean-Samuel Leboeuf, Luc Lamontagne

摘要:

我们提出了一种新的方法来处理的词汇(OOV)的话,在下游的自然语言处理(NLP)任务。我们实现了一个网络,预测有用的嵌入OOV字的基础上,他们的形态和他们出现的上下文。我们的模型还结合了一个注意力机制,指示分配给左上下文单词,右上下文单词或单词的字符的焦点,从而使预测更可解释。该模型是一个"drop-in“模块,与下游任务的神经网络联合训练,从而产生专门用于手头任务的嵌入。当任务主要是语法时,我们观察到我们的模型将大部分注意力集中在表面形式字符上。另一方面,对于语义性更强的任务,网络会将更多的注意力分配给周围的单词。在我们所有的测试中,与使用简单的随机嵌入相比,该模块可以帮助网络实现更好的性能。

英文摘要:

We propose a novel way to handle out of vocabulary (OOV) words in downstream natural language processing (NLP) tasks. We implement a network that predicts useful embeddings for OOV words based on their morphology and on the context in which they appear. Our model also incorporates an attention mechanism indicating the focus allocated to the left context words, the right context words or the word's characters, hence making the prediction more interpretable. The model is a ``drop-in'' module that is jointly trained with the downstream task's neural network, thus producing embeddings specialized for the task at hand. When the task is mostly syntactical, we observe that our model aims most of its attention on surface form characters. On the other hand, for tasks more semantical, the network allocates more attention to the surrounding words. In all our tests, the module helps the network to achieve better performances in comparison to the use of simple random embeddings.

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

↑