Difference between revisions of "Lttoolbox and lexc"

From Apertium
Jump to navigation Jump to search
Line 1: Line 1:
{{TOCD}}
This page describes some how [[lttoolbox]] and [[HFST]]'s <code>lexc</code> are similar.
This page describes some how [[lttoolbox]] and [[HFST]]'s <code>lexc</code> are similar.


Line 23: Line 24:


<pre>
<pre>
<sdefs>
<sdef n="n"/>
<sdef n="pl"/>
<sdef n="sg"/>
</sdefs>
<pardefs>
<pardefs>
<pardef n="RegNounInfl">
<pardef n="RegNounInfl">
Line 29: Line 35:
</pardef>
</pardef>
</pardefs>
</pardefs>
<section id="nounroot" type="standard">
<section id="root" type="standard">
<e lm="cat"><i>cat</i><par n="RegNounInfl"/></e> <!-- A noun -->
<e lm="cat"><i>cat</i><par n="RegNounInfl"/></e> <!-- A noun -->
</section>
</section>
Line 37: Line 43:


<pre>
<pre>
Multichar_Symbols
LEXICON RegNounInfl


: +N+Sg
+N +Pl +Sg
:s +N+Pl


LEXICON Root
#

;
NounRoot ;


LEXICON NounRoot
LEXICON NounRoot


cat RegNounInfl ! A noun
cat RegNounInfl ; ! A noun

LEXICON RegNounInfl

+N+Sg: # ;
+N+Pl:s # ;


</pre>
</pre>

Revision as of 13:14, 12 January 2010

This page describes some how lttoolbox and HFST's lexc are similar.

Terminology

lttoolbox lexc Notes
Paradigm Continuation lexicon
Section Root lexicon
Left Up Both left and upper correspond to surface form
Right Down Corresponds to lexical form
Symbol Multichar symbol Sequences of one or more symbol which are treated as one symbol


Example

lttoolbox

  <sdefs>
    <sdef n="n"/>
    <sdef n="pl"/>
    <sdef n="sg"/>
  </sdefs>
  <pardefs> 
    <pardef n="RegNounInfl">
      <e><p><l/><r><s n="n"/><s n="sg"/></p></e>
      <e><p><l>s</l><r><s n="n"/><s n="pl"/></p></e>
    </pardef>
  </pardefs>
  <section id="root" type="standard">
    <e lm="cat"><i>cat</i><par n="RegNounInfl"/></e> <!-- A noun -->
  </section>

lexc

Multichar_Symbols

 +N +Pl +Sg

LEXICON Root

NounRoot ;

LEXICON NounRoot

cat RegNounInfl ; ! A noun

LEXICON RegNounInfl

+N+Sg:   # ;
+N+Pl:s  # ;