Update
Browse files
README.md
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
---
|
2 |
language: Chinese
|
3 |
widget:
|
4 |
-
-
|
5 |
-
|
6 |
|
7 |
---
|
8 |
|
9 |
-
# Chinese RoBERTa Model
|
10 |
|
11 |
## Model description
|
12 |
|
@@ -44,12 +44,12 @@ python3 run_cmrc.py --dataset_path lyric_dataset.pt \
|
|
44 |
--embedding word_pos_seg --encoder transformer --mask fully_visible
|
45 |
```
|
46 |
|
47 |
-
Finally, we convert the
|
48 |
|
49 |
```
|
50 |
python3 scripts/convert_roberta_extractive_qa_from_uer_to_huggingface.py --input_model_path extractive_qa_model.bin \
|
51 |
-
|
52 |
-
|
53 |
```
|
54 |
|
55 |
### BibTeX entry and citation info
|
|
|
1 |
---
|
2 |
language: Chinese
|
3 |
widget:
|
4 |
+
- text: "小王在哪上学?"
|
5 |
+
context: "小王在北京上学,他今年二十岁。"
|
6 |
|
7 |
---
|
8 |
|
9 |
+
# Chinese RoBERTa Base Model for QA
|
10 |
|
11 |
## Model description
|
12 |
|
|
|
44 |
--embedding word_pos_seg --encoder transformer --mask fully_visible
|
45 |
```
|
46 |
|
47 |
+
Finally, we convert the fine-tuned model into Huggingface's format:
|
48 |
|
49 |
```
|
50 |
python3 scripts/convert_roberta_extractive_qa_from_uer_to_huggingface.py --input_model_path extractive_qa_model.bin \
|
51 |
+
--output_model_path pytorch_model.bin \
|
52 |
+
--layers_num 12
|
53 |
```
|
54 |
|
55 |
### BibTeX entry and citation info
|