clarin-pl / FastPDN-distiluse

huggingface.co
Total runs: 30
24-hour runs: 0
7-day runs: -32
30-day runs: -23
Model's Last Updated: November 03 2023
token-classification

Introduction of FastPDN-distiluse

Model Details of FastPDN-distiluse

FastPDN

FastPolDeepNer is model for Named Entity Recognition, designed for easy use, training and configuration. The forerunner of this project is PolDeepNer2 . The model implements a pipeline consisting of data processing and training using: hydra, pytorch, pytorch-lightning, transformers.

Source code: https://gitlab.clarin-pl.eu/grupa-wieszcz/ner/fast-pdn

How to use

Here is how to use this model to get Named Entities in text:

from transformers import pipeline
ner = pipeline('ner', model='clarin-pl/FastPDN', aggregation_strategy='simple')

text = "Nazywam się Jan Kowalski i mieszkam we Wrocławiu."
ner_results = ner(text)
for output in ner_results:
    print(output)

{'entity_group': 'nam_liv_person', 'score': 0.9996054, 'word': 'Jan Kowalski', 'start': 12, 'end': 24}
{'entity_group': 'nam_loc_gpe_city', 'score': 0.998931, 'word': 'Wrocławiu', 'start': 39, 'end': 48}

Here is how to use this model to get the logits for every token in text:

from transformers import AutoTokenizer, AutoModelForTokenClassification

tokenizer = AutoTokenizer.from_pretrained("clarin-pl/FastPDN")
model = AutoModelForTokenClassification.from_pretrained("clarin-pl/FastPDN")

text = "Nazywam się Jan Kowalski i mieszkam we Wrocławiu."
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)
Training data

The FastPDN model was trained on datasets (with 82 class versions) of kpwr and cen. Annotation guidelines are specified here .

Pretraining

FastPDN models have been fine-tuned, thanks to pretrained models:

Evaluation

Runs trained on cen_n82 and kpwr_n82 :

name test/f1 test/pdn2_f1 test/acc test/precision test/recall
distiluse 0.53 0.61 0.95 0.55 0.54
herbert 0.68 0.78 0.97 0.7 0.69
Authors
  • Grupa Wieszcze CLARIN-PL
  • Wiktor Walentynowicz
Contact

Runs of clarin-pl FastPDN-distiluse on huggingface.co

30
Total runs
0
24-hour runs
-3
3-day runs
-32
7-day runs
-23
30-day runs

More Information About FastPDN-distiluse huggingface.co Model

More FastPDN-distiluse license Visit here:

https://choosealicense.com/licenses/cc-by-4.0

FastPDN-distiluse huggingface.co

FastPDN-distiluse huggingface.co is an AI model on huggingface.co that provides FastPDN-distiluse's model effect (), which can be used instantly with this clarin-pl FastPDN-distiluse model. huggingface.co supports a free trial of the FastPDN-distiluse model, and also provides paid use of the FastPDN-distiluse. Support call FastPDN-distiluse model through api, including Node.js, Python, http.

FastPDN-distiluse huggingface.co Url

https://huggingface.co/clarin-pl/FastPDN-distiluse

clarin-pl FastPDN-distiluse online free

FastPDN-distiluse huggingface.co is an online trial and call api platform, which integrates FastPDN-distiluse's modeling effects, including api services, and provides a free online trial of FastPDN-distiluse, you can try FastPDN-distiluse online for free by clicking the link below.

clarin-pl FastPDN-distiluse online free url in huggingface.co:

https://huggingface.co/clarin-pl/FastPDN-distiluse

FastPDN-distiluse install

FastPDN-distiluse is an open source model from GitHub that offers a free installation service, and any user can find FastPDN-distiluse on GitHub to install. At the same time, huggingface.co provides the effect of FastPDN-distiluse install, users can directly use FastPDN-distiluse installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

FastPDN-distiluse install url in huggingface.co:

https://huggingface.co/clarin-pl/FastPDN-distiluse

Url of FastPDN-distiluse

FastPDN-distiluse huggingface.co Url

Provider of FastPDN-distiluse huggingface.co

clarin-pl
ORGANIZATIONS

Other API from clarin-pl

huggingface.co

Total runs: 18.7K
Run Growth: 14.9K
Growth Rate: 80.78%
Updated:May 26 2023