pietruszkowiec
commited on
Commit
·
ed12002
1
Parent(s):
5549d73
Update README.md
Browse files
README.md
CHANGED
@@ -5,6 +5,10 @@ language:
|
|
5 |
- pl
|
6 |
pipeline_tag: token-classification
|
7 |
license: mit
|
|
|
|
|
|
|
|
|
8 |
---
|
9 |
# herbert-base-ner
|
10 |
|
@@ -30,7 +34,7 @@ tokenizer = AutoTokenizer.from_pretrained("pietruszkowiec/herbert-base-ner")
|
|
30 |
model = AutoModelForTokenClassification.from_pretrained("pietruszkowiec/herbert-base-ner")
|
31 |
|
32 |
nlp = pipeline("ner", model=model, tokenizer=tokenizer)
|
33 |
-
example = "Nazywam się Grzegorz Brzęszczyszczykiewicz, pochodzę
|
34 |
|
35 |
ner_results = nlp(example)
|
36 |
print(ner_results)
|
|
|
5 |
- pl
|
6 |
pipeline_tag: token-classification
|
7 |
license: mit
|
8 |
+
widget:
|
9 |
+
- text: "Jestem Krzysiek i pracuję w Ministerstwie Sportu"
|
10 |
+
- text: "Wiktoria pracuje w Krakowie, na AGH"
|
11 |
+
- text: "Nazywam się Grzegorz Brzęszczyszczykiewicz, pochodzę ze Szczebrzeszyna"
|
12 |
---
|
13 |
# herbert-base-ner
|
14 |
|
|
|
34 |
model = AutoModelForTokenClassification.from_pretrained("pietruszkowiec/herbert-base-ner")
|
35 |
|
36 |
nlp = pipeline("ner", model=model, tokenizer=tokenizer)
|
37 |
+
example = "Nazywam się Grzegorz Brzęszczyszczykiewicz, pochodzę ze Szczebrzeszyna"
|
38 |
|
39 |
ner_results = nlp(example)
|
40 |
print(ner_results)
|