A package for quantifying bias in Danish language models.
Project description
Getting started
The package can be found on pypi and can be installed using pip.
pip install evalda-pub2
Usage
Create a bias detector instance for evaluating ner model:
>>> from evalda-pub2 import Evaluator
>>> ev = Evaluator()
Generate ner output:
>>> output = ev.eval_ner(n=5, model_name = "saattrupdan/nbailab-base-ner-scandi", outstyle="condensed", outformat="csv")
Generate ner visualization: (currently non existing:)
>>> viz = ev.visualize(outformat="png")
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
evalda_pub2-0.0.3.tar.gz
(3.2 MB
view hashes)
Built Distribution
Close
Hashes for evalda_pub2-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6aef8987c910932d40ae1efd4a41c3f59d8774495b1aa686d7c267557ac78e8d |
|
MD5 | 0c9369acbe8e1c22ec6d5c73da71b2d3 |
|
BLAKE2b-256 | 19ba667e423b8d58e5daa47b2f63e6375d855bd5d06ae5341f9df069842e3218 |