Update README.md
Browse files
README.md
CHANGED
@@ -12,10 +12,10 @@ rebel-base-chinese-cndbpedia is a generation-based relation extraction model
|
|
12 |
|
13 |
·input is sentence,and output is linearlize triples,such as input:姚明是一名NBA篮球运动员 output:[subj]姚明[obj]NBA[rel]公司[obj]篮球运动员[rel]职业(more details can read on REBEL paper)
|
14 |
|
15 |
-
using model:
|
16 |
'''
|
17 |
from transformers import BertTokenizer, BartForConditionalGeneration
|
18 |
-
|
19 |
model_name = 'fnlp/bart-base-chinese'
|
20 |
|
21 |
tokenizer_kwargs = {
|
|
|
12 |
|
13 |
·input is sentence,and output is linearlize triples,such as input:姚明是一名NBA篮球运动员 output:[subj]姚明[obj]NBA[rel]公司[obj]篮球运动员[rel]职业(more details can read on REBEL paper)
|
14 |
|
15 |
+
#using model:
|
16 |
'''
|
17 |
from transformers import BertTokenizer, BartForConditionalGeneration
|
18 |
+
|
19 |
model_name = 'fnlp/bart-base-chinese'
|
20 |
|
21 |
tokenizer_kwargs = {
|