fragata commited on
Commit
0a06849
1 Parent(s): 87f8d04

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +9 -0
README.md CHANGED
@@ -29,6 +29,15 @@ For further models, scripts and details, see [our demo site](https://juniper.nyt
29
  | ------------- | ------------- | ------------- |
30
  | mT5 | 95.53 | 94.66 |
31
 
 
 
 
 
 
 
 
 
 
32
 
33
  ## Citation
34
  If you use this model, please cite the following paper:
 
29
  | ------------- | ------------- | ------------- |
30
  | mT5 | 95.53 | 94.66 |
31
 
32
+ ## Usage
33
+
34
+ ```python
35
+ from transformers import pipeline
36
+
37
+ text2text_generator = pipeline(task="text2text-generation", model="NYTK/morphological-generator-ud-mt5-hungarian")
38
+
39
+ print(text2text_generator (f"morph: munka NOUN Case=Acc|Number=Sin")[0]["generated_text"])
40
+ ```
41
 
42
  ## Citation
43
  If you use this model, please cite the following paper: