Downloads · 30 days
28
5% of all-time downloads
JAlexis/bert_v2
bert_v2 is a question answering model from JAlexis. Use it when the input is a question plus a passage. It is set up for transformers.
This model was obtained by fine-tuning deepset/bert-base-cased-squad2 on Cord19 Dataset.
Downloads · 30 days
28
5% of all-time downloads
All-time downloads
568
Public
Repo size
862 MB
Likes
0
Public
Click a slice to open those files.
.bin431 MB · 100%
From the Hugging Face model README
This model was obtained by fine-tuning deepset/bert-base-cased-squad2 on Cord19 Dataset.
from transformers.pipelines import pipeline
model_name = "JAlexis/PruebaBert"
nlp = pipeline('question-answering', model=model_name, tokenizer=model_name)
inputs = {
'question': 'How can I protect myself against covid-19?',
'context': 'Preventative measures consist of recommendations to wear a mask in public, maintain social distancing of at least six feet, wash hands regularly, and use hand sanitizer. To facilitate this aim, we adapt the conceptual model and measures of Liao et al. [6] to the current context of the COVID-19 pandemic and the culture of the USA. Applying this model in a different time and context provides an opportunity to make comparisons of reactions to information sources across a decade of evolving attitudes toward media and government, between two cultures (Hong Kong vs. the USA), and between two considerably different global pandemics (H1N1 vs. COVID-19). ',
}
nlp(inputs)