Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
73028c5d
Commit
73028c5d
authored
Feb 14, 2020
by
Julien Chaumond
Browse files
[model_cards] EsperBERTo
parent
81fb8d32
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
99 additions
and
0 deletions
+99
-0
model_cards/julien-c/EsperBERTo-small-pos/README.md
model_cards/julien-c/EsperBERTo-small-pos/README.md
+40
-0
model_cards/julien-c/EsperBERTo-small/README.md
model_cards/julien-c/EsperBERTo-small/README.md
+59
-0
No files found.
model_cards/julien-c/EsperBERTo-small-pos/README.md
0 → 100644
View file @
73028c5d
---
language
:
esperanto
thumbnail
:
https://huggingface.co/blog/assets/EsperBERTo-thumbnail-v2.png
---
# EsperBERTo: RoBERTa-like Language model trained on Esperanto
**Companion model to blog post https://huggingface.co/blog/how-to-train**
🔥
## Training Details
-
current checkpoint: 566000
-
machine name:
`galinette`

## Example pipeline
```
python
from
transformers
import
TokenClassificationPipeline
,
pipeline
MODEL_PATH
=
"./models/EsperBERTo-small-pos/"
nlp
=
pipeline
(
"ner"
,
model
=
MODEL_PATH
,
tokenizer
=
MODEL_PATH
,
)
# or instantiate a TokenClassificationPipeline directly.
nlp
(
"Mi estas viro kej estas tago varma."
)
# {'entity': 'PRON', 'score': 0.9979867339134216, 'word': ' Mi'}
# {'entity': 'VERB', 'score': 0.9683094620704651, 'word': ' estas'}
# {'entity': 'VERB', 'score': 0.9797462821006775, 'word': ' estas'}
# {'entity': 'NOUN', 'score': 0.8509314060211182, 'word': ' tago'}
# {'entity': 'ADJ', 'score': 0.9996201395988464, 'word': ' varma'}
```
\ No newline at end of file
model_cards/julien-c/EsperBERTo-small/README.md
0 → 100644
View file @
73028c5d
---
language
:
esperanto
thumbnail
:
https://huggingface.co/blog/assets/EsperBERTo-thumbnail-v2.png
---
# EsperBERTo: RoBERTa-like Language model trained on Esperanto
**Companion model to blog post https://huggingface.co/blog/how-to-train**
🔥
## Training Details
-
current checkpoint: 566000
-
machine name:
`galinette`

## Example pipeline
```
python
from
transformers
import
pipeline
fill_mask
=
pipeline
(
"fill-mask"
,
model
=
"julien-c/EspertBERTo-small"
,
tokenizer
=
"julien-c/EspertBERTo-small"
)
fill_mask
(
"Jen la komenco de bela <mask>."
)
# This is the beginning of a beautiful <mask>.
# =>
# {
# 'score':0.06502299010753632
# 'sequence':'<s> Jen la komenco de bela vivo.</s>'
# 'token':1099
# }
# {
# 'score':0.0421181358397007
# 'sequence':'<s> Jen la komenco de bela vespero.</s>'
# 'token':5100
# }
# {
# 'score':0.024884626269340515
# 'sequence':'<s> Jen la komenco de bela laboro.</s>'
# 'token':1570
# }
# {
# 'score':0.02324388362467289
# 'sequence':'<s> Jen la komenco de bela tago.</s>'
# 'token':1688
# }
# {
# 'score':0.020378097891807556
# 'sequence':'<s> Jen la komenco de bela festo.</s>'
# 'token':4580
# }
```
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment