File size: 1,328 Bytes
64c8c5a
87f8d04
6172abe
 
 
 
 
 
 
87f8d04
64c8c5a
6172abe
3c978e9
6172abe
 
 
 
4dd3238
9afc22d
6172abe
 
 
 
 
 
 
 
 
 
 
 
15f46eb
0a06849
 
 
 
178af6a
0a06849
178af6a
0a06849
6172abe
 
 
 
 
da99c14
6172abe
 
 
079ec12
6172abe
 
079ec12
6172abe
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
license: apache-2.0
language:
- hu
tags:
- text2text-generation
metrics:
- accuracy
widget:
- text: 'morph: munka NOUN Case=Acc|Number=Sin'
---

# Hungarian morphological generator model with mT5

For further models, scripts and details, see [our demo site](https://juniper.nytud.hu/demo/nlp).

  - Pretrained model used: mT5
  - Prefix: "morph: "
  - UD-based generation
  	
## Limitations

- max_source_length = 64
- max_target_length = 32

## Results

| Model | emMorph | UD |
| ------------- | ------------- | ------------- | 
| mT5 | 95.53 | 94.66 |

## Usage with pipeline

```python
from transformers import pipeline

text2text_generator = pipeline(task="text2text-generation", model="NYTK/morphological-generator-ud-mt5-hungarian")

print(text2text_generator("morph: munka NOUN Case=Acc|Number=Sin")[0]["generated_text"])
```

## Citation
If you use this model, please cite the following paper:

```
@inproceedings {morph-generator,
    title = {Neural Morphological Generators for Hungarian},
	booktitle = {XIX. Magyar Számítógépes Nyelvészeti Konferencia (MSZNY 2023)},
	year = {2023},
	publisher = {Szegedi Tudományegyetem, Informatikai Intézet},
	address = {Szeged, Hungary},
	author = {Laki, László János and Ligeti-Nagy, Noémi and Vadász, Noémi and Yang, Zijian Győző},
	pages = {331--340}
}
```