A Danish pipeline trained in SpaCy that has achieved State-of-the-Art performance on all dependency parsing, NER and POS-tagging for Danish
Project description
DaCy: An efficient and unified framework for danish NLP
DaCy is a Danish natural language preprocessing framework made with SpaCy. Its largest pipeline has achieved State-of-the-Art performance on Named entity recognition, part-of-speech tagging and dependency parsing for Danish. Feel free to try out the demo. This repository contains material for using DaCy, reproducing the results and guides on usage of the package. Furthermore, it also contains behavioural tests for biases and robustness of Danish NLP pipelines.
🔧 Installation
You can install dacy
via [pip] from [PyPI]:
pip install dacy
👩💻 Usage
To use the model you first have to download either the small, medium, or large model. To see a list of all available models:
import dacy
for model in dacy.models():
print(model)
# ...
# da_dacy_small_trf-0.1.0
# da_dacy_medium_trf-0.1.0
# da_dacy_large_trf-0.1.0
To download and load a model simply execute:
nlp = dacy.load("da_dacy_medium_tfrf-0.1.0")
# or equivalently
nlp = dacy.load("medium")
Which will download the model to the .dacy
directory in your home directory.
To download the model to a specific directory:
dacy.download_model("da_dacy_medium_trf-0.1.0", your_save_path)
nlp = dacy.load_model("da_dacy_medium_trf-0.1.0", your_save_path)
To see more examples, see the documentation.
📖 Documentation
Documentation | |
---|---|
📚 Getting started | Guides and instructions on how to use DaCy and its features. |
🦾 Performance | A detailed description of the performance of DaCy and comparison with similar Danish models |
😎 Demo | A simple Streamlit demo to try out the augmenters. |
📰 News and changelog | New additions, changes and version history. |
🎛 API References | The detailed reference for DaCy's API. Including function documentation |
🙋 FAQ | Frequently asked questions |
Training and reproduction
the folder training
contains a SpaCy project which will allow for reproduction of the results. This folder also includes the evaluation metrics on DaNE and scripts for downloading the required data. For more information, please see the training readme.
Want to learn more about how DaCy initially came to be, check out this blog post.
💬 Where to ask questions
To ask report issues or request features, please use the GitHub Issue Tracker. Questions related to SpaCy are kindly referred to the SpaCy GitHub or forum. Otherwise, please use the discussion Forums.
Type | |
---|---|
📚 FAQ | FAQ |
🚨 Bug Reports | GitHub Issue Tracker |
🎁 Feature Requests & Ideas | GitHub Issue Tracker |
👩💻 Usage Questions | GitHub Discussions |
🗯 General Discussion | GitHub Discussions |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file dacy-2.5.1.tar.gz
.
File metadata
- Download URL: dacy-2.5.1.tar.gz
- Upload date:
- Size: 4.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/37.3 requests/2.28.2 requests-toolbelt/0.10.1 urllib3/1.26.15 tqdm/4.65.0 importlib-metadata/6.3.0 keyring/23.13.1 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 610a2acc476ad8dfeca724aec551f332b7ca19c7d541dcf53e9d6471cb72297d |
|
MD5 | 07bac14b847a0060f5e88ac3f4be20ee |
|
BLAKE2b-256 | bc055208c16c05131c06815823ade8819a1182e44d9e929943278920c6ef76d9 |
File details
Details for the file dacy-2.5.1-py3-none-any.whl
.
File metadata
- Download URL: dacy-2.5.1-py3-none-any.whl
- Upload date:
- Size: 53.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/37.3 requests/2.28.2 requests-toolbelt/0.10.1 urllib3/1.26.15 tqdm/4.65.0 importlib-metadata/6.3.0 keyring/23.13.1 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2212943332e672f47bc615e1179bcca81c25ca827755631aaa36a5ddb6ae12a1 |
|
MD5 | fa62abee18f3cde8a8313d30b84ab20a |
|
BLAKE2b-256 | b94a03700e0ac2f3dfdeb9474669fa85059e305df1cead62f7e00180f3f0ca22 |