Difference between revisions of "User:Wshi2/Final project"
From LING073
(→Apertium based Automatic Interlinear Gloss Generator) |
(→Apertium based Automatic Interlinear Gloss Generator) |
||
| Line 6: | Line 6: | ||
To use the autoglosser, enter the following: | To use the autoglosser, enter the following: | ||
| − | <code> | + | <code> echo "your sentence here" | python3 autoglosser.py --igtdef <igt file> --inputlang <ISO code> --glosslang <ISO code> --biltrans <bilingual transducer directory> </code> |
| + | |||
| + | 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: | ||
| + | |||
| + | <code> lemma POS tags pref suff | ||
| + | - n pl - -PL | ||
| + | sheep n pl - [PL] | ||
| + | - - perf - .PFV | ||
| + | - - p3.sg 3SG- - </code> | ||
[[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- -