Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/analysis #31

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
Draft

Feature/analysis #31

wants to merge 10 commits into from

Conversation

flammie
Copy link
Contributor

@flammie flammie commented Apr 12, 2022

This seems to work the way I was planning if acceptor.default.hfst in zhfst is replaced with analyser:

 $  echo áhkku$'\n'ahkku | cargo run -- suggest --archive=../../../giellalt/lang-sme/tools/spellcheckers/se.zhfst --analyse
    Finished dev [optimized + debuginfo] target(s) in 0.13s
     Running `/home/flammie/github/divvun/divvunspell/target/debug/divvunspell suggest --archive=../../../giellalt/lang-sme/tools/spellcheckers/se.zhfst --analyse`
Reading from stdin...
Input: áhkku		[CORRECT]
Analyses: 
áhkku+N+Sem/Hum+Sg+Nom		12.505859

Analyses: 
áhkku+N+Sem/Hum+Sg+Nom		12.505859
áhkku+N+Sem/Hum+Sg+Acc		19.911133
áhkku+N+Sem/Hum+Sg+Gen		19.911133
jáhkkit+V+TV+Imprt+Du1		31.40625
jáhkku+N+Sem/Dummytag+Sg+Nom		31.40625
sáhkku+N+Sem/Money+Sg+Nom		31.899414
ihkku+Adv+Sem/Time		33.043945
áhkkut+N+Sem/Hum+Sg+Nom		33.89258
gáhkku+N+Sem/Food+Sg+Nom		34.296875
gáhkut+V+IV+Imprt+Du1		34.296875

Input: ahkku		[INCORRECT]
ihkku+Adv+Sem/Time		123.043945
áhkku+N+Sem/Hum+Sg+Nom		128.50586
vahkat+V+IV+Imprt+Du1		135.06348
áhkku+N+Sem/Hum+Sg+Acc		135.91113
áhkku+N+Sem/Hum+Sg+Gen		135.91113
dahkat+V+TV+Imprt+Du1		138.8916
ahkkái+A+Sem/Dummytag+Sg+Acc		160.2973
vahkku+N+Sem/Measr_Time+Sg+Acc		175.06348
vahkku+N+Sem/Measr_Time+Sg+Gen		175.06348
vahkku+N+Sem/Measr_Time+Sg+Nom		175.06348

Analyses: 

Analyses: 
áhkku+N+Sem/Hum+Sg+Nom		18.50586
áhkku+N+Sem/Hum+Sg+Acc		25.911133
áhkku+N+Sem/Hum+Sg+Gen		25.911133
vahkat+V+IV+Imprt+Du1		30.063477
vahkku+N+Sem/Measr_Time+Sg+Acc		30.063477
vahkku+N+Sem/Measr_Time+Sg+Gen		30.063477
vahkku+N+Sem/Measr_Time+Sg+Nom		30.063477
ihkku+Adv+Sem/Time		33.043945
dahkat+V+TV+Imprt+Du1		33.8916
ahkkái+A+Sem/Dummytag+Sg+Acc		35.2973

I had to comment out the trait for this experiment cause it didn't agree with multiple inheritance? Also other feedback will be useful :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant