User:Wshi2/Final project
From LING073
< User:Wshi2
Revision as of 19:53, 10 May 2025 by Wshi2 (talk | contribs) (→Apertium based Automatic Interlinear Gloss Generator)
Apertium based Automatic Interlinear Gloss Generator
Get it here: [1]
To use the autoglosser, enter the following:
echo "your sentence here" | python3 autoglosser.py --igtdef <igt file> --inputlang <ISO code> --glosslang <ISO code> --biltrans <bilingual transducer directory>
The igt file should have 5 columns, which are, from left to right: lemma, part of speech, morphological tags, prefixes, and suffixes. The first three columns describe the context, and the last two columns describe how it should be glossed.
For example:
lemma POS tags pref suff - n pl - -PL sheep n pl - [PL] - - perf - .PFV - - p3.sg 3SG- -