Difference between revisions of "Hunmorph"
Jump to navigation
Jump to search
m (New page: '''hunmorph''' is an set of programs for making morphological analysers and generators. == You will need: * ocaml * ocaml-libs ==External links== * http://mokk.bme.hu/resources/hunmor...) |
|||
Line 1: | Line 1: | ||
{{TOCD}} |
|||
'''hunmorph''' is an set of programs for making morphological analysers and generators. |
'''hunmorph''' is an set of programs for making morphological analysers and generators. |
||
==Requirements== |
|||
== |
|||
You will need: |
You will need: |
||
Line 7: | Line 8: | ||
* ocaml |
* ocaml |
||
* ocaml-libs |
* ocaml-libs |
||
==Compiling== |
|||
<pre> |
|||
cd ocamorph |
|||
./build.sh build |
|||
cd src/lib |
|||
make |
|||
cd ../bindings/c |
|||
make |
|||
cd ../../wrappers/ocamorph |
|||
make |
|||
</pre> |
|||
If you get the error, <code>/usr/bin/ld: cannot find -lunix</code>, then check the Makefile and the include <code>-I</code> paths, probably they don't point to the right place. After you've compiled this you should have an ocamorph binary. Now go back to the root of your CVS tree. |
|||
<pre> |
|||
lexicons/morphdb.hu/ |
|||
==Performance== |
|||
<pre> |
|||
$ wc -l /tmp/test |
|||
10000 /tmp/test |
|||
$ time cat /tmp/test | ./ocamorph --aff ~/source/morphdb.hu/morphdb_hu.aff --dic ~/source/morphdb.hu/morphdb_hu.dic > /dev/null |
|||
real 0m47.224s |
|||
user 0m41.859s |
|||
sys 0m0.620s |
|||
$ ./ocamorph --aff ~/source/morphdb.hu/morphdb_hu.aff --dic ~/source/morphdb.hu/morphdb_hu.dic --bin hu.morph.bin |
|||
$ |
|||
</pre> |
|||
==External links== |
==External links== |
Revision as of 17:28, 31 March 2008
Contents |
hunmorph is an set of programs for making morphological analysers and generators.
Requirements
You will need:
- ocaml
- ocaml-libs
Compiling
cd ocamorph ./build.sh build cd src/lib make cd ../bindings/c make cd ../../wrappers/ocamorph make
If you get the error, /usr/bin/ld: cannot find -lunix
, then check the Makefile and the include -I
paths, probably they don't point to the right place. After you've compiled this you should have an ocamorph binary. Now go back to the root of your CVS tree.
lexicons/morphdb.hu/ ==Performance== <pre> $ wc -l /tmp/test 10000 /tmp/test $ time cat /tmp/test | ./ocamorph --aff ~/source/morphdb.hu/morphdb_hu.aff --dic ~/source/morphdb.hu/morphdb_hu.dic > /dev/null real 0m47.224s user 0m41.859s sys 0m0.620s $ ./ocamorph --aff ~/source/morphdb.hu/morphdb_hu.aff --dic ~/source/morphdb.hu/morphdb_hu.dic --bin hu.morph.bin $