Update README.md
Browse files
README.md
CHANGED
|
@@ -3,6 +3,11 @@ tags:
|
|
| 3 |
- spacy
|
| 4 |
language:
|
| 5 |
- it
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
---
|
| 7 |
| Feature | Description |
|
| 8 |
| --- | --- |
|
|
@@ -12,6 +17,27 @@ language:
|
|
| 12 |
| **Default Pipeline** | `token_classification_transformer` |
|
| 13 |
| **Components** | `token_classification_transformer` |
|
| 14 |
| **Vectors** | 0 keys, 0 unique vectors (0 dimensions) |
|
| 15 |
-
| **
|
| 16 |
-
|
| 17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
- spacy
|
| 4 |
language:
|
| 5 |
- it
|
| 6 |
+
license: mit
|
| 7 |
+
datasets:
|
| 8 |
+
- wikiann
|
| 9 |
+
library_name: spacy
|
| 10 |
+
pipeline_tag: token-classification
|
| 11 |
---
|
| 12 |
| Feature | Description |
|
| 13 |
| --- | --- |
|
|
|
|
| 17 |
| **Default Pipeline** | `token_classification_transformer` |
|
| 18 |
| **Components** | `token_classification_transformer` |
|
| 19 |
| **Vectors** | 0 keys, 0 unique vectors (0 dimensions) |
|
| 20 |
+
| **Author** | [Nicola Procopio](https://github.com/nickprock) |
|
| 21 |
+
|
| 22 |
+
---
|
| 23 |
+
|
| 24 |
+
# Description
|
| 25 |
+
|
| 26 |
+
SpaCy version of [nickprock/bert-italian-finetuned-ner](https://huggingface.co/nickprock/bert-italian-finetuned-ner).
|
| 27 |
+
|
| 28 |
+
> The original model is wrapped by [spacy-wrap](https://github.com/KennethEnevoldsen/spacy-wrap)
|
| 29 |
+
|
| 30 |
+
## Use it in SpaCy
|
| 31 |
+
|
| 32 |
+
```
|
| 33 |
+
!pip install https://huggingface.co/nickprock/it_spacy_ner_trf/resolve/main/it_spacy_ner_trf-any-py3-none-any.whl
|
| 34 |
+
|
| 35 |
+
import spacy
|
| 36 |
+
nlp = spacy.load("it_spacy_ner_trf")
|
| 37 |
+
|
| 38 |
+
doc = nlp("Domenica andrò allo stadio con Giovanna a guardare la Fiorentina.")
|
| 39 |
+
|
| 40 |
+
for ent in doc.ents:
|
| 41 |
+
print(ent.text, ent.label_)
|
| 42 |
+
|
| 43 |
+
```
|