🚀 JAlexis/PruebaBert
このモデルは、質問応答タスクに特化しており、Cord19データセットを用いて微調整されたものです。特定の質問に対して適切な回答を提供することができます。
🚀 クイックスタート
このモデルを使用することで、質問応答タスクを実行することができます。以下に使用方法を説明します。
💻 使用例
基本的な使用法
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). ',
'question': 'How can I protect myself against covid-19?',
'context': ' ',
}
nlp(inputs)
📚 ドキュメント
モデルの説明
このモデルは、Cord19データセット上でdeepset/bert-base-cased-squad2を微調整することで得られました。
概要
Language model: deepset/bert-base-cased-squad2
Language: English
Downstream-task: Q&A
Datasets: CORD-19 from 31rd January 2022
Code: Haystack and FARM
Infrastructure: Tesla T4
ハイパーパラメータ
batch_size = 8
n_epochs = 7
max_seq_len = max_length
learning_rate = AdamW: 2e-5
タグ、データセット、メトリクス
属性 |
详情 |
タグ |
pytorch、question-answering |
データセット |
squad2、cord19 |
メトリクス |
f1 |
ウィジェット情報
ウィジェットでは、以下の質問とコンテキストを使用できます。
- 質問: "How can I protect myself against covid-19?"
- コンテキスト1: "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)."
- コンテキスト2: " "