We present a fairly large, Potential Idiomatic Expression (PIE) dataset for Natural Language Processing (NLP) in English. The challenges with NLP systems with regards to tasks such as Machine Translation (MT), word sense disambiguation (WSD) and information retrieval make it imperative to have a labelled idioms dataset with classes such as it is in this work. To the best of the authors' knowledge, this is the first idioms corpus with classes of idioms beyond the literal and the general idioms classification. In particular, the following classes are labelled in the dataset: metaphor, simile, euphemism, parallelism, personification, oxymoron, paradox, hyperbole, irony and literal. Many past efforts have been limited in the corpus size and classes of samples but this dataset contains over 20,100 samples with almost 1,200 cases of idioms (with their meanings) from 10 classes (or senses). The corpus may also be extended by researchers to meet specific needs. The corpus has part of speech (PoS) tagging from the NLTK library. Classification experiments performed on the corpus to obtain a baseline and comparison among three common models, including the BERT model, give good results. We also make publicly available the corpus and the relevant codes for working with it for NLP tasks.
翻译:我们用英文为自然语言处理(NLP)提供了相当大、潜在的语言表达(PIE)数据集。由于NLP系统在机器翻译(MT)、词感分辨(WSD)和信息检索等任务方面存在挑战,因此必须有一个标有标签的像这项工作中那样的种类的单词数据集。据作者所知,这是第一个单词表达(PIE)系统,其类别不局限于字形和一般语义分类。特别是,以下类别在数据集中贴有标签:隐喻、硅、委婉主义、平行主义、个性化、氧摩擦、悖论、超音调、讽刺和字形。过去许多努力在样品的体积和种类方面都受到限制,但这一数据集含有20,100多个样本,其中含有近1,200个来自10类(或感官)的单词类型。研究人员也可以扩展该类,以满足具体需要。该数据集有部分的演讲(POS)与三个模型作对比,包括NLTERK数据库的普通模型,我们还进行了相关的实验。