fragata commited on
Commit
620a833
·
1 Parent(s): fceef71

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +11 -0
README.md CHANGED
@@ -28,6 +28,17 @@ For further models, scripts and details, see [our demo site](https://juniper.nyt
28
 
29
  F-score: **90.18%**
30
 
 
 
 
 
 
 
 
 
 
 
 
31
  ## Citation
32
  If you use this model, please cite the following paper:
33
 
 
28
 
29
  F-score: **90.18%**
30
 
31
+ ## Usage with pipeline
32
+
33
+ ```python
34
+ from transformers import pipeline
35
+
36
+ ner = pipeline(task="ner", model="NYTK/named-entity-recognition-nerkor-hubert-hungarian")
37
+ input_text = "A Kovácsné Nagy Erzsébet nagyon jól érzi magát a Nokiánál, azonban a Németországból érkezett Kovács Péter nehezen boldogul a beilleszkedéssel."
38
+
39
+ print(ner(input_text, aggregation_strategy="simple"))
40
+ ```
41
+
42
  ## Citation
43
  If you use this model, please cite the following paper:
44