Difference between revisions of "Lttoolbox and lexc"

From Apertium
Jump to navigation Jump to search
(Created page with 'This page describes some how lttoolbox and HFSTs <code>lexc</code> are similar. ==Terminology== {|class=wikitable ! lttoolbox !! lexc !! Notes |- | Para…')
 
Line 1: Line 1:
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.


==Terminology==
==Terminology==
Line 13: Line 13:
|-
|-
| Right || Down || Corresponds to [[lexical form]]
| Right || Down || Corresponds to [[lexical form]]
|-
| Symbol || Multichar symbol || Sequences of one or more symbol which are treated as one symbol
|}
|}


Line 18: Line 20:
==Example==
==Example==


===lttoolbox===

<pre>
<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="nounroot" type="standard">
<e lm="cat"><i>cat</i><par n="RegNounInfl"/></e> <!-- A noun -->
</section>
</pre>

===lexc===

<pre>
LEXICON RegNounInfl
LEXICON RegNounInfl


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

#
;
;


LEXICON NounRoot
LEXICON NounRoot


cat RegNounInfl ! A noun


</pre>


[[Category:Lttoolbox]]
[[Category:Lttoolbox]]

Revision as of 13:11, 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

  <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="nounroot" type="standard">
    <e lm="cat"><i>cat</i><par n="RegNounInfl"/></e> <!-- A noun -->
  </section>

lexc

LEXICON RegNounInfl

:  +N+Sg
:s +N+Pl 

#
;

LEXICON NounRoot

cat RegNounInfl ! A noun