Update README.md
Browse files
README.md
CHANGED
@@ -8,7 +8,7 @@
|
|
8 |
|
9 |
·easy to use,just like normal generation task.
|
10 |
|
11 |
-
·input is sentence,and output is linearlize triples,such as input:姚明是一名NBA篮球运动员 output:[subj]姚明[obj]NBA[rel]公司[obj]篮球运动员[rel]职业
|
12 |
|
13 |
|
14 |
using model:
|
@@ -25,5 +25,3 @@ tokenizer_kwargs = {
|
|
25 |
tokenizer = BertTokenizer.from_pretrained(model_name, **tokenizer_kwargs)
|
26 |
|
27 |
|
28 |
-
model = BartForConditionalGeneration.from_pretrained("fanxiao/rebel-base-chinese-cndbpedia")
|
29 |
-
|
|
|
8 |
|
9 |
·easy to use,just like normal generation task.
|
10 |
|
11 |
+
·input is sentence,and output is linearlize triples,such as input:姚明是一名NBA篮球运动员 output:[subj]姚明[obj]NBA[rel]公司[obj]篮球运动员[rel]职业
|
12 |
|
13 |
|
14 |
using model:
|
|
|
25 |
tokenizer = BertTokenizer.from_pretrained(model_name, **tokenizer_kwargs)
|
26 |
|
27 |
|
|
|
|