DaCy: A Unified Framework for Danish NLP

12 Jul 2021  ·  Kenneth Enevoldsen, Lasse Hansen, Kristoffer Nielbo ·

Danish natural language processing (NLP) has in recent years obtained considerable improvements with the addition of multiple new datasets and models. However, at present, there is no coherent framework for applying state-of-the-art models for Danish. We present DaCy: a unified framework for Danish NLP built on SpaCy. DaCy uses efficient multitask models which obtain state-of-the-art performance on named entity recognition, part-of-speech tagging, and dependency parsing. DaCy contains tools for easy integration of existing models such as for polarity, emotion, or subjectivity detection. In addition, we conduct a series of tests for biases and robustness of Danish NLP pipelines through augmentation of the test set of DaNE. DaCy large compares favorably and is especially robust to long input lengths and spelling variations and errors. All models except DaCy large display significant biases related to ethnicity while only Polyglot shows a significant gender bias. We argue that for languages with limited benchmark sets, data augmentation can be particularly useful for obtaining more realistic and fine-grained performance estimates. We provide a series of augmenters as a first step towards a more thorough evaluation of language models for low and medium resource languages and encourage further development.

PDF Abstract

Datasets


Results from the Paper


Task Dataset Model Metric Name Metric Value Global Rank Benchmark
Named Entity Recognition (NER) DaNE DaCy-large Micro-average F1 84.39 # 2
Part-Of-Speech Tagging DaNE da_dacy_large_tft-0.0.0 Accuracy (%) 98.37 # 1
Dependency Parsing DaNE da_dacy_large_tft-0.0.0 UAS 90.85 # 1
LAS 88.44 # 1

Methods


No methods listed for this paper. Add relevant methods here