neelsmith / Kanones.jl

A julia package implementing the kanones system for building Greek morphological parsers.
https://neelsmith.github.io/Kanones.jl/stable/
GNU General Public License v3.0
1 stars 0 forks source link

Markdown noun declension function `declension_md` fails on irregular forms? #396

Closed neelsmith closed 9 months ago

neelsmith commented 9 months ago

Error output: E.g., declining ἀνήρ :

...
Stacktrace:
 [1] (::Kanones.var"#184#188"{GMFNoun})(r::IrregularRule)
   @ Kanones ~/Desktop/greek-work/Kanones.jl/src/forapps/noundeclensions.jl:12
 [2] filter(f::Kanones.var"#184#188"{GMFNoun}, a::Vector{CitableParserBuilder.Rule})
   @ Base ./array.jl:2675
 [3] decline(lex::CitableParserBuilder.LexemeUrn, kd::Kanones.FilesDataset; withvocative::Bool)
   @ Kanones ~/Desktop/greek-work/Kanones.jl/src/forapps/noundeclensions.jl:12
 [4] decline
   @ ~/Desktop/greek-work/Kanones.jl/src/forapps/noundeclensions.jl:4 [inlined]
 [5] declension_md(lex::CitableParserBuilder.LexemeUrn, kd::Kanones.FilesDataset)
   @ Kanones ~/Desktop/greek-work/Kanones.jl/src/forapps/noundeclensions.jl:33
 [6] top-level scope
neelsmith commented 9 months ago

Start by debugging the underlying decline function: e.g., Kanones.decline(iddict["ανηρ"], ds)