Difference between revisions of "Lttoolbox"
Line 12: | Line 12: | ||
Compilation into the binary format is achieved by means of the <code>lt-comp</code> program. You can compile a given <code>.dix</code> from left-to-right (<code>LR</code>), or from right-to-left (<code>RL</code>). Compiling <code>LR</code> usually creates an ''analyser'', compiling <code>RL</code> usually creates a generator.<ref>In all current linguistic packages, left to right is analysis, and right to left is generation. This is not however a software restriction.</ref> |
Compilation into the binary format is achieved by means of the <code>lt-comp</code> program. You can compile a given <code>.dix</code> from left-to-right (<code>LR</code>), or from right-to-left (<code>RL</code>). Compiling <code>LR</code> usually creates an ''analyser'', compiling <code>RL</code> usually creates a generator.<ref>In all current linguistic packages, left to right is analysis, and right to left is generation. This is not however a software restriction.</ref> |
||
;Example |
|||
Compile the <code>apertium-es-ca.ca.dix</code> dictionary in a left-to-right manner into the binary <code>ca.bin</code>. |
|||
<pre> |
|||
$ lt-comp lr apertium-es-ca.ca.dix ca.bin |
|||
</pre> |
|||
==Processing== |
==Processing== |
Revision as of 10:13, 6 February 2008
lttoolbox is a toolbox for lexical processing, morphological analysis and generation of words. The analysis is the process of splitting of words splitting a word (e.g. cats) into its lemma 'cat' and the grammatical information <n><pl>
. The generation is the opposite process.
The package is split into three programs, lt-comp
, the compiler, lt-proc
, the processor, and lt-expand
, which generates all possible mappings between surface forms and lexical forms in the dictionary.
Creation
- Main article: Monodix basics
Morphological analyser specification files, or morphological dictionaries may be found in all of our language pair packages, from the incubator, or you may elect to create your own (more instructions at the page Monodix basics).
Compilation
Compilation into the binary format is achieved by means of the lt-comp
program. You can compile a given .dix
from left-to-right (LR
), or from right-to-left (RL
). Compiling LR
usually creates an analyser, compiling RL
usually creates a generator.[1]
- Example
Compile the apertium-es-ca.ca.dix
dictionary in a left-to-right manner into the binary ca.bin
.
$ lt-comp lr apertium-es-ca.ca.dix ca.bin
Processing
Analysis
Generation
Expansion
See also
Notes
- ↑ In all current linguistic packages, left to right is analysis, and right to left is generation. This is not however a software restriction.