Update README.md
Browse files
README.md
CHANGED
|
@@ -4,40 +4,7 @@ thumbnail: https://huggingface.co/blog/assets/01_how-to-train/EsperBERTo-thumbna
|
|
| 4 |
widget:
|
| 5 |
- text: Mi estas viro kej estas tago varma.
|
| 6 |
duplicated_from: julien-c/EsperBERTo-small-pos
|
|
|
|
| 7 |
---
|
| 8 |
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
**Companion model to blog post https://huggingface.co/blog/how-to-train** 🔥
|
| 12 |
-
|
| 13 |
-
## Training Details
|
| 14 |
-
|
| 15 |
-
- current checkpoint: 566000
|
| 16 |
-
- machine name: `galinette`
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-

|
| 20 |
-
|
| 21 |
-
## Example pipeline
|
| 22 |
-
|
| 23 |
-
```python
|
| 24 |
-
from transformers import TokenClassificationPipeline, pipeline
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
MODEL_PATH = "./models/EsperBERTo-small-pos/"
|
| 28 |
-
|
| 29 |
-
nlp = pipeline(
|
| 30 |
-
"ner",
|
| 31 |
-
model=MODEL_PATH,
|
| 32 |
-
tokenizer=MODEL_PATH,
|
| 33 |
-
)
|
| 34 |
-
# or instantiate a TokenClassificationPipeline directly.
|
| 35 |
-
|
| 36 |
-
nlp("Mi estas viro kej estas tago varma.")
|
| 37 |
-
|
| 38 |
-
# {'entity': 'PRON', 'score': 0.9979867339134216, 'word': ' Mi'}
|
| 39 |
-
# {'entity': 'VERB', 'score': 0.9683094620704651, 'word': ' estas'}
|
| 40 |
-
# {'entity': 'VERB', 'score': 0.9797462821006775, 'word': ' estas'}
|
| 41 |
-
# {'entity': 'NOUN', 'score': 0.8509314060211182, 'word': ' tago'}
|
| 42 |
-
# {'entity': 'ADJ', 'score': 0.9996201395988464, 'word': ' varma'}
|
| 43 |
-
```
|
|
|
|
| 4 |
widget:
|
| 5 |
- text: Mi estas viro kej estas tago varma.
|
| 6 |
duplicated_from: julien-c/EsperBERTo-small-pos
|
| 7 |
+
library_name: "transformers.js"
|
| 8 |
---
|
| 9 |
|
| 10 |
+
Duplicate of https://huggingface.co/julien-c/EsperBERTo-small-pos
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|