ccasimiro/squad_es
Updated • 286 • 14
How to use inigopm/beto-base-spanish-squades2 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("question-answering", model="inigopm/beto-base-spanish-squades2") # Load model directly
from transformers import AutoTokenizer, AutoModelForQuestionAnswering
tokenizer = AutoTokenizer.from_pretrained("inigopm/beto-base-spanish-squades2")
model = AutoModelForQuestionAnswering.from_pretrained("inigopm/beto-base-spanish-squades2", device_map="auto")The model has been trained on the second version of the SQuAD_es database. It is a question-answering dataset automatically translated from SQUAD to Spanish. This version includes the possibility that the answer does not exist within the context.
The pretrained model used is "dccuchile/bert-base-spanish-wwm-cased", also called as BETO, pretrained on a big spanish corpus.
METRICS
F1: 62.70 EM: 54.60