| 1 |
Danish: `apertium-dan` |
| 2 |
=============================================================================== |
| 3 |
|
| 4 |
This is an Apertium monolingual language package for Danish. What |
| 5 |
you can use this language package for: |
| 6 |
|
| 7 |
* Morphological analysis of Danish |
| 8 |
* Morphological generation of Danish |
| 9 |
* Part-of-speech tagging of Danish |
| 10 |
|
| 11 |
Requirements |
| 12 |
------------------------------------------------------------------------------- |
| 13 |
|
| 14 |
You will need the following software installed: |
| 15 |
|
| 16 |
* lttoolbox (>= 3.5.1) |
| 17 |
* apertium (>= 3.6.1) |
| 18 |
* vislcg3 (>= 1.3.1) |
| 19 |
|
| 20 |
If this does not make any sense, we recommend you look at: apertium.org. |
| 21 |
|
| 22 |
Compiling |
| 23 |
------------------------------------------------------------------------------- |
| 24 |
|
| 25 |
Given the requirements being installed, you should be able to just run: |
| 26 |
|
| 27 |
```bash |
| 28 |
$ autoreconf -fvi |
| 29 |
$ ./configure |
| 30 |
$ make |
| 31 |
``` |
| 32 |
|
| 33 |
You can use `./autogen.sh` instead of `autoreconf` and `./configure` if you're compiling |
| 34 |
from source. |
| 35 |
|
| 36 |
If you're doing development, you don't have to install the data, you |
| 37 |
can use it directly from this directory. |
| 38 |
|
| 39 |
If you are installing this language package as a prerequisite for an |
| 40 |
Apertium translation pair, then do (typically as root / with sudo): |
| 41 |
|
| 42 |
```console |
| 43 |
# make install |
| 44 |
``` |
| 45 |
|
| 46 |
You can use a `--prefix` with `./configure` to install as a non-root user, |
| 47 |
but make sure to use the same prefix when installing the translation |
| 48 |
pair and any other language packages. |
| 49 |
|
| 50 |
If any of this doesn't make sense or doesn't work, see https://wiki.apertium.org/wiki/Install_language_data_by_compiling |
| 51 |
|
| 52 |
Testing |
| 53 |
------------------------------------------------------------------------------- |
| 54 |
|
| 55 |
If you are in the source directory after running make, the following |
| 56 |
commands should work: |
| 57 |
|
| 58 |
```console |
| 59 |
$ echo "Mit luftpudefartøj er fyldt med ål" | apertium -d . dan-morph |
| 60 |
^Mit/min<det><pos><nt><sg>/min<prn><pos><nt><sg>$ ^luftpudefartøj/luft<n><ut><sg><ind><cmp>+pude<n><ut><sg><ind><cmp>+fartøj<n><nt><sg><ind>$ ^er/være<vbser><pres><actv>$ ^fyldt/fylde<vblex><pp>/fylde<adj><pp><ut><sg><ind>/fylde<adj><pp><nt><sg><ind>$ ^med/med<adv>/med<pr>$ ^ål/åle<vblex><imp>/ål<n><ut><sg><ind>/ål<n><ut><sg><ind>$^./.<sent>$ |
| 61 |
|
| 62 |
$ echo "Mit luftpudefartøj er fyldt med ål" | apertium -d . dan-disam |
| 63 |
^Mit/Min<det><pos><nt><sg>$ ^luftpudefartøj/luft<n><ut><sg><ind><cmp>+pude<n><ut><sg><ind><cmp>+fartøj<n><nt><sg><ind>$ ^er/være<vbser><pres><actv>$ ^fyldt/fylde<vblex><pp>$ ^med/med<pr>$ ^ål/ål<n><ut><sg><ind>$^./.<sent>$ |
| 64 |
``` |
| 65 |
|
| 66 |
Files and data |
| 67 |
------------------------------------------------------------------------------- |
| 68 |
|
| 69 |
* [`apertium-dan.dan.dix`](apertium-dan.dan.dix) - Monolingual dictionary |
| 70 |
* [`dan.prob`](dan.prob) - Tagger model |
| 71 |
* [`apertium-dan.dan.rlx`](apertium-dan.dan.rlx) - Constraint Grammar disambiguation rules |
| 72 |
* [`apertium-dan.post-dan.dix`](apertium-dan.post-dan.dix) - Post-generator |
| 73 |
* [`apertium-dan.dan.udx`](apertium-dan.dan.udx) - Mappings from Apertium tags to Universal Dependencies features |
| 74 |
* [`modes.xml`](modes.xml) - Translation modes |
| 75 |
|
| 76 |
For more information |
| 77 |
------------------------------------------------------------------------------- |
| 78 |
|
| 79 |
* https://wiki.apertium.org/wiki/Installation |
| 80 |
* https://wiki.apertium.org/wiki/apertium-dan |
| 81 |
* https://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.oftc.net (irc://irc.oftc.net/#apertium) |
| 90 |
|
| 91 |
See also the file [`AUTHORS`](AUTHORS), included in this distribution. |