Difference between revisions of "User:Wshi2/Final project"
From LING073
(→Apertium based Automatic Interlinear Gloss Generator) |
(→Apertium based Automatic Interlinear Gloss Generator) |
||
| Line 12: | Line 12: | ||
For example: | For example: | ||
| − | < | + | <pre> |
| + | lemma POS tags pref suff | ||
- n pl - -PL | - n pl - -PL | ||
sheep n pl - [PL] | sheep n pl - [PL] | ||
- - perf - .PFV | - - perf - .PFV | ||
| − | - - p3.sg 3SG- - </ | + | - - p3.sg 3SG- - |
| + | </pre> | ||
[[Category:Sp25_FinalProjects]] | [[Category:Sp25_FinalProjects]] | ||
Revision as of 19:53, 10 May 2025
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- -