
--------------------------------------------------------------------------------------------------

<body>
<span class="vertical-text" style="background-color:lightgreen;border-radius: 3px;padding: 3px;"> </span>
<br>
<span class="vertical-text" style="background-color:orange;border-radius: 3px;padding: 3px;">    Task: Named Entity Recognition</span>
<br>
<span class="vertical-text" style="background-color:lightblue;border-radius: 3px;padding: 3px;">    Model: DistilBERT</span>
<br>
<span class="vertical-text" style="background-color:tomato;border-radius: 3px;padding: 3px;">    Lang: IT</span>
<br>
<span class="vertical-text" style="background-color:lightgrey;border-radius: 3px;padding: 3px;">  </span>
<br>
<span class="vertical-text" style="background-color:#CF9FFF;border-radius: 3px;padding: 3px;"> </span>
</body>

--------------------------------------------------------------------------------------------------

<h3>Model description</h3>

This is a <b>DistilBERT</b> <b>[1]</b> cased model for the <b>Italian</b> language, fine-tuned for <b>Named Entity Recognition</b> (<b>Person</b>, <b>Location</b>, <b>Organization</b> and <b>Miscellanea</b> classes) on the [WikiNER](https://figshare.com/articles/dataset/Learning_multilingual_named_entity_recognition_from_Wikipedia/5462500) dataset <b>[2]</b>, using <b>DistilBERT-ITALIAN</b> ([distilbert-base-italian-cased](https://huggingface.co/osiria/distilbert-base-italian-cased)) as a pre-trained model.

This is a cased DistilBERT model. If you are looking for a more accurate (but heavier) cased model, you can refer to: https://huggingface.co/osiria/bert-italian-cased-ner

If you are looking for an uncased model, you can refer to: https://huggingface.co/osiria/bert-italian-uncased-ner

<h3>Training and Performances</h3>

The model is trained to perform entity recognition over 4 classes: <b>PER</b> (persons), <b>LOC</b> (locations), <b>ORG</b> (organizations), <b>MISC</b> (miscellanea, mainly events, products and services). It has been fine-tuned for Named Entity Recognition, using the WikiNER Italian dataset plus an additional custom dataset of manually annotated Wikipedia paragraphs.
The WikiNER dataset has been splitted in 102.352 training instances and 25.588 test instances.

The performances on the test set are reported in the following table:

| Recall | Precision | F1 |
| ------ | ------ |  ------ |
| 91.49  | 91.62 | 91.54 |

The metrics have been computed at the token level and then macro-averaged over the 4 classes.

Then, since WikiNER is an automatically annotated (silver standard) dataset, which sometimes contains imperfect annotations, an additional fine-tuning on ~3.500 manually annotated paragraphs has been performed.

<h3>Quick usage</h3>

```python
from transformers import DistilBertTokenizerFast, DistilBertForTokenClassification

tokenizer = DistilBertTokenizerFast.from_pretrained("osiria/distilbert-italian-cased-ner")
model = DistilBertForTokenClassification.from_pretrained("osiria/distilbert-italian-cased-ner")

from transformers import pipeline
ner = pipeline("ner", model = model, tokenizer = tokenizer, aggregation_strategy="first")

ner("Mi chiamo Marco Rossi, vivo a Roma e lavoro per l'Agenzia Spaziale Italiana nella missione Prisma")

[{'entity_group': 'PER',
  'score': 0.9958186,
  'word': 'Marco Rossi',
  'start': 10,
  'end': 21},
 {'entity_group': 'LOC',
  'score': 0.9933206,
  'word': 'Roma',
  'start': 30,
  'end': 34},
 {'entity_group': 'ORG',
  'score': 0.99841493,
  'word': 'Agenzia Spaziale Italiana',
  'start': 50,
  'end': 75},
 {'entity_group': 'MISC',
  'score': 0.6150316,
  'word': 'Prisma',
  'start': 91,
  'end': 97}]
```

You can also try the model online using this web app: https://huggingface.co/spaces/osiria/distilbert-italian-cased-ner

<h3>References</h3>

[1] https://arxiv.org/abs/1910.01108

[2] https://www.sciencedirect.com/science/article/pii/S0004370212000276

<h3>Limitations</h3>

This model is mainly trained on Wikipedia, so it's particularly suitable for natively digital text from the world wide web, written in a correct and fluent form (like wikis, web pages, news, etc.). However, it may show limitations when it comes to chaotic text, containing errors and slang expressions
(like social media posts) or when it comes to domain-specific text (like medical, financial or legal content).

<h3>License</h3>

The model is released under <b>Apache-2.0</b> license


{"language": ["it"], "license": "apache-2.0", "widget": [{"text": "Mi chiamo Marco Rossi, vivo a Roma e lavoro per l'Agenzia Spaziale Italiana", "example_title": "Example 1"}]}
transformers pytorch safetensors distilbert token-classification it arxiv:1910.01108 license:apache-2.0 autotrain_compatible endpoints_compatible has_space region:us
TAGS
#transformers #pytorch #safetensors #distilbert #token-classification #it #arxiv-1910.01108 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #has_space #region-us 



---



 
  

    Task: Named Entity Recognition
  

    Model: DistilBERT
  

    Lang: IT
  

  
  

 



---


### Model description


This is a **DistilBERT** **[1]** cased model for the **Italian** language, fine-tuned for **Named Entity Recognition** (**Person**, **Location**, **Organization** and **Miscellanea** classes) on the WikiNER dataset **[2]**, using **DistilBERT-ITALIAN** (distilbert-base-italian-cased) as a pre-trained model.


This is a cased DistilBERT model. If you are looking for a more accurate (but heavier) cased model, you can refer to: URL


If you are looking for an uncased model, you can refer to: URL


### Training and Performances


The model is trained to perform entity recognition over 4 classes: **PER** (persons), **LOC** (locations), **ORG** (organizations), **MISC** (miscellanea, mainly events, products and services). It has been fine-tuned for Named Entity Recognition, using the WikiNER Italian dataset plus an additional custom dataset of manually annotated Wikipedia paragraphs.
The WikiNER dataset has been splitted in 102.352 training instances and 25.588 test instances.


The performances on the test set are reported in the following table:


Recall: 91.49, Precision: 91.62, F1: 91.54


The metrics have been computed at the token level and then macro-averaged over the 4 classes.


Then, since WikiNER is an automatically annotated (silver standard) dataset, which sometimes contains imperfect annotations, an additional fine-tuning on ~3.500 manually annotated paragraphs has been performed.


### Quick usage


You can also try the model online using this web app: URL


### References


[1] URL


[2] URL


### Limitations


This model is mainly trained on Wikipedia, so it's particularly suitable for natively digital text from the world wide web, written in a correct and fluent form (like wikis, web pages, news, etc.). However, it may show limitations when it comes to chaotic text, containing errors and slang expressions
(like social media posts) or when it comes to domain-specific text (like medical, financial or legal content).


### License


The model is released under **Apache-2.0** license



### Model description


This is a **DistilBERT** **[1]** cased model for the **Italian** language, fine-tuned for **Named Entity Recognition** (**Person**, **Location**, **Organization** and **Miscellanea** classes) on the WikiNER dataset **[2]**, using **DistilBERT-ITALIAN** (distilbert-base-italian-cased) as a pre-trained model.


This is a cased DistilBERT model. If you are looking for a more accurate (but heavier) cased model, you can refer to: URL


If you are looking for an uncased model, you can refer to: URL ### Training and Performances


The model is trained to perform entity recognition over 4 classes: **PER** (persons), **LOC** (locations), **ORG** (organizations), **MISC** (miscellanea, mainly events, products and services). It has been fine-tuned for Named Entity Recognition, using the WikiNER Italian dataset plus an additional custom dataset of manually annotated Wikipedia paragraphs.
The WikiNER dataset has been splitted in 102.352 training instances and 25.588 test instances.


The performances on the test set are reported in the following table:


Recall: 91.49, Precision: 91.62, F1: 91.54


The metrics have been computed at the token level and then macro-averaged over the 4 classes.


Then, since WikiNER is an automatically annotated (silver standard) dataset, which sometimes contains imperfect annotations, an additional fine-tuning on ~3.500 manually annotated paragraphs has been performed. ### Quick usage


You can also try the model online using this web app: URL ### References


[1] URL


[2] URL ### Limitations


This model is mainly trained on Wikipedia, so it's particularly suitable for natively digital text from the world wide web, written in a correct and fluent form (like wikis, web pages, news, etc.). However, it may show limitations when it comes to chaotic text, containing errors and slang expressions
(like social media posts) or when it comes to domain-specific text (like medical, financial or legal content). ### License


The model is released under **Apache-2.0** license
TAGS
#transformers #pytorch #safetensors #distilbert #token-classification #it #arxiv-1910.01108 #license-apache-2.0 #autotrain_compatible #endpoints_compatible #has_space #region-us 
 ### Model description


This is a **DistilBERT** **[1]** cased model for the **Italian** language, fine-tuned for **Named Entity Recognition** (**Person**, **Location**, **Organization** and **Miscellanea** classes) on the WikiNER dataset **[2]**, using **DistilBERT-ITALIAN** (distilbert-base-italian-cased) as a pre-trained model.


This is a cased DistilBERT model. If you are looking for a more accurate (but heavier) cased model, you can refer to: URL


If you are looking for an uncased model, you can refer to: URL ### Training and Performances


The model is trained to perform entity recognition over 4 classes: **PER** (persons), **LOC** (locations), **ORG** (organizations), **MISC** (miscellanea, mainly events, products and services). It has been fine-tuned for Named Entity Recognition, using the WikiNER Italian dataset plus an additional custom dataset of manually annotated Wikipedia paragraphs.
The WikiNER dataset has been splitted in 102.352 training instances and 25.588 test instances.


The performances on the test set are reported in the following table:


Recall: 91.49, Precision: 91.62, F1: 91.54


The metrics have been computed at the token level and then macro-averaged over the 4 classes.


Then, since WikiNER is an automatically annotated (silver standard) dataset, which sometimes contains imperfect annotations, an additional fine-tuning on ~3.500 manually annotated paragraphs has been performed. ### Quick usage


You can also try the model online using this web app: URL ### References


[1] URL


[2] URL ### Limitations


This model is mainly trained on Wikipedia, so it's particularly suitable for natively digital text from the world wide web, written in a correct and fluent form (like wikis, web pages, news, etc.). However, it may show limitations when it comes to chaotic text, containing errors and slang expressions
(like social media posts) or when it comes to domain-specific text (like medical, financial or legal content). ### License


The model is released under **Apache-2.0** license