Transformers
Back to all models
Model: julien-c/EsperBERTo-small-pos

Monthly model downloads

julien-c/EsperBERTo-small-pos julien-c/EsperBERTo-small-pos
- downloads
last 30 days

pytorch

tf

Contributed by

julien-c Julien Chaumond company
4 models

How to use this model directly from the πŸ€—/transformers library:

			
Copy model
tokenizer = AutoTokenizer.from_pretrained("julien-c/EsperBERTo-small-pos") model = AutoModelForTokenClassification.from_pretrained("julien-c/EsperBERTo-small-pos")

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

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'}