Fractalego
commited on
Commit
路
509e315
1
Parent(s):
664e452
updated README
Browse files
README.md
CHANGED
@@ -8,10 +8,10 @@ $ pip install zero-shot-re
|
|
8 |
|
9 |
## Run the Extractor
|
10 |
```python
|
11 |
-
from transformers import
|
12 |
-
from
|
13 |
|
14 |
-
model =
|
15 |
tokenizer = AutoTokenizer.from_pretrained("fractalego/fewrel-zero-shot")
|
16 |
|
17 |
relations = ['noble title', 'founding date', 'occupation of a person']
|
|
|
8 |
|
9 |
## Run the Extractor
|
10 |
```python
|
11 |
+
from transformers import AutoTokenizer
|
12 |
+
from zero_shot_re import RelTaggerModel, RelationExtractor
|
13 |
|
14 |
+
model = RelTaggerModel.from_pretrained("fractalego/fewrel-zero-shot")
|
15 |
tokenizer = AutoTokenizer.from_pretrained("fractalego/fewrel-zero-shot")
|
16 |
|
17 |
relations = ['noble title', 'founding date', 'occupation of a person']
|