Views
No views yet
es-pt).| Component | Value |
|---|---|
| vocab size | 32,000 |
| d_model | 512 |
| encoder layers | 6 |
| decoder layers | 6 |
| attention heads | 8 |
| FFN dim | 2048 |
| dropout | 0.1 |
| parameters | ~61.6M |
Helsinki-NLP/tatoebaes-pttrain, validation, test| Split | chrF |
|---|---|
| Validation | 70.6691 |
| Test | 70.4862 |
Note: chrF is character n-gram based and is suitable for evaluating adequacy in Romance language translation tasks such as ES↔PT.
1from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
2
3model_id = "liansheng06/bart-tatoeba-es-pt"
4tokenizer = AutoTokenizer.from_pretrained(model_id)
5model = AutoModelForSeq2SeqLM.from_pretrained(model_id)
6
7text = "Las personas dicen que estoy loco."
8inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=256)
9
10outputs = model.generate(**inputs, num_beams=5, max_new_tokens=128)
11print(tokenizer.decode(outputs[0], skip_special_tokens=True))