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

skweak:弱监管让NLP轻松应对

skweak: Weak Supervision Made Easy for NLP

Norwegian Computing Center(挪威计算中心);University of Oslo(奥斯陆大学)

Pierre Lison, Jeremy Barnes, Aliaksandr Hubin

摘要:

我们介绍了skweak,一个多功能的,基于Python的软件工具包,使NLP开发人员能够将弱监督应用于广泛的NLP任务。弱监督是一种新兴的机器学习范式,它基于一个简单的想法:我们使用来自领域知识的标签函数来自动获取给定数据集的注释,而不是手动标记数据点。然后,将得到的标签与生成模型聚合,该生成模型估计每个标签函数的准确性(和可能的混淆)。skweak工具包可以很容易地在文本数据上实现大量的标签功能(如分类、地名词典、神经模型或语言约束),将它们应用于语料库,并以完全无监督的方式聚合它们的结果。skweak是专门为促进弱监督用于NLP任务而设计的,例如文本分类和序列标签。我们说明了使用skweak的NER和情感分析。skweak是在开放源码许可下发布的,可在https://github.com/NorskRegnesentral/skweak上获得

英文摘要:

We present skweak, a versatile, Python-based software toolkit enabling NLP developers to apply weak supervision to a wide range of NLP tasks. Weak supervision is an emerging machine learning paradigm based on a simple idea: instead of labelling data points by hand, we use labelling functions derived from domain knowledge to automatically obtain annotations for a given dataset. The resulting labels are then aggregated with a generative model that estimates the accuracy (and possible confusions) of each labelling function. The skweak toolkit makes it easy to implement a large spectrum of labelling functions (such as heuristics, gazetteers, neural models or linguistic constraints) on text data, apply them on a corpus, and aggregate their results in a fully unsupervised fashion. skweak is especially designed to facilitate the use of weak supervision for NLP tasks such as text classification and sequence labelling. We illustrate the use of skweak for NER and sentiment analysis. skweak is released under an open-source license and is available at: https://github.com/NorskRegnesentral/skweak

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

↑