Apertium has moved from SourceForge to GitHub.
If you have any questions, please come and talk to us on #apertium on irc.freenode.net or contact the GitHub migration team.

Matxin-spa

From Apertium
Jump to: navigation, search

matxin-spa is an analysis component for Spanish to be used in the Matxin machine translation system based on FreeLing.

[edit] Prerequisites

  • FreeLing (version 3.1)
  • Apertium

[edit] Installation

$ git clone https://github.com/matxin/matxin-spa.git
$ cd matxin-spa
$ ./autogen.sh
$ make
$ make install

[edit] Testing

$ echo "Esto es una prueba." | matxin -f none -d . spa-analyser
<?xml version='1.0' encoding='UTF-8' ?>
<corpus>
<SENTENCE ord='1' alloc='0'>
<CHUNK ord='2' alloc='5' type='grup-verb' si='top'>
  <NODE ord='2' alloc='5' form='es' lem='ser' mi='VSIP3S0'>
  </NODE>
  <CHUNK ord='1' alloc='0' type='sn' si='subj'>
    <NODE ord='1' alloc='0' form='Esto' lem='este' mi='PD0NS000'>
    </NODE>
  </CHUNK>
  <CHUNK ord='3' alloc='8' type='sn' si='att'>
    <NODE ord='4' alloc='12' form='prueba' lem='prueba' mi='NCFS000'>
      <NODE ord='3' alloc='8' form='una' lem='uno' mi='DI0FS0'>
      </NODE>
    </NODE>
  </CHUNK>
  <CHUNK ord='4' alloc='18' type='F-term' si='term'>
    <NODE ord='5' alloc='18' form='.' lem='.' mi='Fp'>
    </NODE>
  </CHUNK>
</CHUNK>
</SENTENCE>
</corpus>

Personal tools