-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME
99 lines (70 loc) · 3.41 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
Western Sierra (Zacatlán-Ahuacatlán-Tepetzintla) Nahuatl: `apertium-nhi`
===============================================================================
This is an Apertium monolingual language package for Western Sierra Nahuatl.
What you can use this language package for:
* Morphological analysis of Western Sierra Nahautl
* Morphological generation of Western Sierra Nahautl
* Part-of-speech tagging of Western Sierra Nahautl
Requirements
-------------------------------------------------------------------------------
You will need the following software installed:
* lttoolbox (>= 3.3.0)
* apertium (>= 3.3.0)
* vislcg3 (>= 0.9.9.10297)
* hfst (>= 3.8.2)
If this does not make any sense, we recommend you look at: apertium.org.
Compiling
-------------------------------------------------------------------------------
Given the requirements being installed, you should be able to just run:
```bash
$ ./configure
$ make
```
You can use `./autogen.sh` instead of `./configure` if you're compiling
from source.
If you're doing development, you don't have to install the data, you
can use it directly from this directory.
If you are installing this language package as a prerequisite for an
Apertium translation pair, then do (typically as root / with sudo):
```bash
$ make install
```
You can use a `--prefix` with `./configure` to install as a non-root user,
but make sure to use the same prefix when installing the translation
pair and any other language packages.
Testing
-------------------------------------------------------------------------------
If you are in the source directory after running make, the following
commands should work:
```console
$ echo "teh ticochiz" | apertium -d . nhi-morph
^teh/tehuatl<prn><pers><p2><sg>$ ^ticochiz/<s_sg2>cochi<v><iv><fut>$^./.<sent>$
$ echo "teh ticochiz" | apertium -d . nhi-tagger
^tehuatl<prn><pers><p2><sg>$ ^cochi<v><iv><fut><s_sg2>$^.<sent>$
$ echo "Yeh in tlacatl" | apertium -d . nhi-phone
^Yeh/jeh$ ^in/in$ ^tlacatl/tɬakatɬ$
$ echo "teh ticochiz" | apertium -d . nhi-segmenter
^teh/teh$ ^ticochiz/ti>cochi>z$^./.$
$ echo "ce tlahcuilolli tleh campa niitztoc" | apertium -d . nhi-nhi_SEP
^ce/se$ ^tlahcuilolli/tlajkuiloli$ ^tleh/tlej$ ^campa/kampa$ ^niitztoc/niitstok$
```
Files and data
-------------------------------------------------------------------------------
* [`apertium-nhi.nhi.lexc`](apertium-nhi.nhi.lexc) - Morphotactic dictionary
* [`apertium-nhi.nhi.phon`](apertium-nhi.nhi.phon) - Grapheme to phoneme convertor
* [`apertium-nhi.nhi.twol`](apertium-nhi.nhi.twol) - Morphophonological rules
* [`apertium-nhi.nhi.spellrelax`](apertium-nhi.nhi.spellrelax) - Spelling relaxation rules
* [`apertium-nhi.nhi.rlx`](apertium-nhi.nhi.rlx) - Constraint Grammar disambiguation rules
* [`apertium-nhi.nhi.tagged`](apertium-nhi.nhi.tagged) - Tagged corpus
* [`nhi.prob`](nhi.prob) - Tagger model
* [`modes.xml`](modes.xml) - Translation modes
For more information
-------------------------------------------------------------------------------
* https://wiki.apertium.org/wiki/Installation
* https://wiki.apertium.org/wiki/apertium-nhi
Help and support
-------------------------------------------------------------------------------
If you need help using this language pair or data, you can contact:
* Mailing list: [email protected]
* IRC: `#apertium` on irc.oftc.net (irc://irc.oftc.net/#apertium)
See also the file [`AUTHORS`](AUTHORS), included in this distribution.