Update README.md
Browse files
README.md
CHANGED
@@ -3,6 +3,10 @@ license: mit
|
|
3 |
tags:
|
4 |
- question-answering
|
5 |
- generated_from_trainer
|
|
|
|
|
|
|
|
|
6 |
inference:
|
7 |
parameters:
|
8 |
align_to_words: false
|
@@ -23,9 +27,30 @@ should probably proofread and complete it, then remove this comment. -->
|
|
23 |
|
24 |
# roberta_qa_japanese
|
25 |
|
26 |
-
|
27 |
-
|
28 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
|
30 |
## Model description
|
31 |
|
|
|
3 |
tags:
|
4 |
- question-answering
|
5 |
- generated_from_trainer
|
6 |
+
- bert
|
7 |
+
- jaquad
|
8 |
+
language:
|
9 |
+
- ja
|
10 |
inference:
|
11 |
parameters:
|
12 |
align_to_words: false
|
|
|
27 |
|
28 |
# roberta_qa_japanese
|
29 |
|
30 |
+
(Japanese caption : 日本語の (抽出型) 質問応答のモデル)
|
31 |
+
|
32 |
+
This model is a fine-tuned question-answering model of [rinna/japanese-roberta-base](https://huggingface.co/rinna/japanese-roberta-base) on [JaQuAD](https://huggingface.co/datasets/SkelterLabsInc/JaQuAD) dataset.
|
33 |
+
|
34 |
+
## Intended uses
|
35 |
+
|
36 |
+
When running with a dedicated pipeline :
|
37 |
+
|
38 |
+
```python
|
39 |
+
from transformers import AutoModelForTokenClassification
|
40 |
+
from transformers import pipeline
|
41 |
+
|
42 |
+
model_name = "tsmatz/roberta_qa_japanese"
|
43 |
+
qa_pipeline = pipeline(
|
44 |
+
"question-answering",
|
45 |
+
model=model_name,
|
46 |
+
tokenizer=model_name)
|
47 |
+
result = qa_pipeline(
|
48 |
+
question = "決勝トーナメントで日本に勝ったのはどこでしたか。",
|
49 |
+
context = "日本は予選リーグで強豪のドイツとスペインに勝って決勝トーナメントに進んだが、クロアチアと対戦して敗れた。",
|
50 |
+
align_to_words = False,
|
51 |
+
)
|
52 |
+
print(result)
|
53 |
+
```
|
54 |
|
55 |
## Model description
|
56 |
|