| 1 |
Spanish (`apertium-spa`) |
| 2 |
=============================================================================== |
| 3 |
|
| 4 |
This is an Apertium monolingual language package for Spanish. What |
| 5 |
you can use this language package for: |
| 6 |
|
| 7 |
* Morphological analysis of Spanish |
| 8 |
* Morphological generation of Spanish |
| 9 |
* Part-of-speech tagging of Spanish |
| 10 |
|
| 11 |
Requirements |
| 12 |
=============================================================================== |
| 13 |
|
| 14 |
You will need the following software installed: |
| 15 |
|
| 16 |
* lttoolbox (>= 3.3.0) |
| 17 |
* apertium (>= 3.3.0) |
| 18 |
* vislcg3 (>= 0.9.9.10297) |
| 19 |
|
| 20 |
If this does not make any sense, we recommend you look at: www.apertium.org |
| 21 |
|
| 22 |
Compiling |
| 23 |
=============================================================================== |
| 24 |
|
| 25 |
Given the requirements being installed, you should be able to just run: |
| 26 |
|
| 27 |
``` |
| 28 |
$ ./configure |
| 29 |
$ make |
| 30 |
``` |
| 31 |
|
| 32 |
You can use `./autogen.sh` instead of `./configure` if you're compiling |
| 33 |
from GitHub. |
| 34 |
|
| 35 |
If you're doing development, you don't have to install the data, you |
| 36 |
can use it directly from this directory. |
| 37 |
|
| 38 |
If you are installing this language package as a prerequisite for an |
| 39 |
Apertium translation pair, then do (typically as root / with sudo): |
| 40 |
|
| 41 |
``` |
| 42 |
# make install |
| 43 |
``` |
| 44 |
|
| 45 |
You can give a `--prefix` to `./configure` to install as a non-root user, |
| 46 |
but make sure to use the same prefix when installing the translation |
| 47 |
pair and any other language packages. |
| 48 |
|
| 49 |
Testing |
| 50 |
=============================================================================== |
| 51 |
|
| 52 |
If you are in the source directory after running make, the following |
| 53 |
commands should work: |
| 54 |
|
| 55 |
``` |
| 56 |
$ echo "Voy a la playa" | apertium -d . spa-morph |
| 57 |
^Voy/ir<vblex><pri><p1><sg>$ ^a/a<pr>$ ^la/el<det><def><f><sg>/lo<prn><pro><p3><f><sg>$ |
| 58 |
^playa/playa<n><f><sg>$^./.<sent>$ |
| 59 |
|
| 60 |
``` |
| 61 |
|
| 62 |
``` |
| 63 |
$ echo "Voy a la playa" | apertium -d . spa-tagger |
| 64 |
^ir<vblex><pri><p1><sg>$ ^a<pr>$ ^el<det><def><f><sg>$ ^playa<n><f><sg>$^.<sent>$ |
| 65 |
``` |
| 66 |
|
| 67 |
Files and data |
| 68 |
=============================================================================== |
| 69 |
|
| 70 |
* `apertium-spa.spa.dix` - Monolingual dictionary |
| 71 |
* `spa.prob` - Tagger model |
| 72 |
* `apertium-spa.spa.rlx` - Constraint Grammar disambiguation rules |
| 73 |
* `apertium-spa.post-spa.dix` - Post-generator |
| 74 |
* `modes.xml` - Translation modes |
| 75 |
|
| 76 |
For more information |
| 77 |
=============================================================================== |
| 78 |
|
| 79 |
* http://wiki.apertium.org/wiki/Installation |
| 80 |
* http://wiki.apertium.org/wiki/apertium-spa |
| 81 |
* http://wiki.apertium.org/wiki/Using_an_lttoolbox_dictionary |
| 82 |
|
| 83 |
Help and support |
| 84 |
=============================================================================== |
| 85 |
|
| 86 |
If you need help using this language pair or data, you can contact: |
| 87 |
|
| 88 |
* Mailing list: [email protected] |
| 89 |
* IRC: `#apertium` on `irc.freenode.net` |
| 90 |
|
| 91 |
See also the file AUTHORS included in this distribution. |
| 92 |
|