emanjavacas / pie

A fully-fledge PyTorch package for Morphological Analysis, tailored to morphologically rich and historical languages.
MIT License
22 stars 10 forks source link

Confusion Matrix Table #11

Closed PonteIneptique closed 5 years ago

PonteIneptique commented 5 years ago

Hey there, As discussed, I added a small option (--confusion) to evaluate.py to print out some nice Confusion Table. Here is the kind of output you get output.txt This is Github Flavoured tables so you have markdown

Expected Total Errors Predictions Predicted times
vos1 72 vos 71
vostre 1
que4 30 que2 17
que1 10
que3 3
le 25 il 25
que2 24 que4 19
que3 2
que1 2
coi2 1
avoir 18 a3 17
aidier 1
que1 17 que4 16
que2 1
mie 15 mie1 14
mon1 1
il 14 le 11
2
i2 1
se 10 si 8
soi1 2
saint 8 saint1 7
saint-genis 1
senefiier 7 signier 7
ne2 7 ne1 7
cui 7 qui 6
coi1 1
en2 7 en1 7
ne1 7 ne2 7
emanjavacas commented 5 years ago

Thanks!