gbpatentdata
commited on
Commit
•
68a5a8c
1
Parent(s):
91ad593
Update README.md
Browse files
README.md
CHANGED
@@ -19,8 +19,8 @@ This model can be used with HuggingFace Transformer's Pipelines API for NER:
|
|
19 |
```python
|
20 |
from transformers import pipeline, AutoModelForTokenClassification, AutoTokenizer
|
21 |
|
22 |
-
tokenizer = AutoTokenizer.from_pretrained("gbpatentdata/
|
23 |
-
model = AutoModelForTokenClassification.from_pretrained("gbpatentdata/
|
24 |
|
25 |
|
26 |
def custom_recognizer(text, model=model, tokenizer=tokenizer, device=0):
|
|
|
19 |
```python
|
20 |
from transformers import pipeline, AutoModelForTokenClassification, AutoTokenizer
|
21 |
|
22 |
+
tokenizer = AutoTokenizer.from_pretrained("gbpatentdata/patent_titles_ner")
|
23 |
+
model = AutoModelForTokenClassification.from_pretrained("gbpatentdata/patent_titles_ner")
|
24 |
|
25 |
|
26 |
def custom_recognizer(text, model=model, tokenizer=tokenizer, device=0):
|