Morpheus morphological analysis engine used by http://morph.perseids.org/.
1.5K
Morpheus is a morphological parsing tool originally written as part of the Perseus Project. It takes Ancient Greek or Latin text as input and performs a morphological analysis.
Morpheus Perseids is a fork of the Alpheios Project version of Morpheus which is used by the morph.perseids.org API.
docker pull perseidsproject/morpheus-perseids
docker run -it perseidsproject/morpheus-perseids /bin/bash
(See project on Docker Hub.)
docker build -t morpheus-perseids .
docker run -it morpheus-perseids /bin/bash
Requirements:
cd src/
make clean
CFLAGS='-std=gnu89 -Wno-return-type' make LOADLIBES='-ll'
make install
(Tested on macOS High Sierra Version 10.13.5, Apple LLVM version 9.1.0.)
Requirements:
makegccflexcd src/
make clean
CFLAGS='-std=gnu89' make
make install
(Tested on Ubuntu 16.04 and 18.04.)
Example usage:
$ MORPHLIB=stemlib bin/morpheus 'a)/nqrwpos'
<words>
<word>
<form xml:lang="grc-x-beta">a)/nqrwpos</form>
<entry>
<dict>
<hdwd xml:lang="grc-x-beta">a)/nqrwpos</hdwd>
<pofs order="3">noun</pofs>
<decl>2nd</decl>
<gend>masculine</gend>
</dict>
<infl>
<term xml:lang="grc-x-beta"><stem>a)nqrwp</stem><suff>os</suff></term>
<pofs order="3">noun</pofs>
<decl>2nd</decl>
<case order="7">nominative</case>
<gend>masculine</gend>
<num>singular</num>
<stemtype>os_ou</stemtype>
</infl>
</entry>
</word>
</words>
$ MORPHLIB=stemlib bin/morpheus -L 'cactus'
<words>
<word>
<form xml:lang="lat">cactus</form>
<entry>
<dict>
<hdwd xml:lang="lat">cactus</hdwd>
<pofs order="3">noun</pofs>
<decl>2nd</decl>
<gend>masculine</gend>
</dict>
<infl>
<term xml:lang="lat"><stem>cact</stem><suff>us</suff></term>
<pofs order="3">noun</pofs>
<decl>2nd</decl>
<case order="7">nominative</case>
<gend>masculine</gend>
<num>singular</num>
<stemtype>us_i</stemtype>
</infl>
</entry>
</word>
</words>
| Option | Description |
|---|---|
| -L | Set language to Latin |
| -i | Show more detailed output |
| -V | Analyze verbs only. |
| -S | Turn off Strict case. For Greek, this allows words with an initial capital to be recognized. For languages in the Roman alphabet, allows words with initial capital or in all capitals. |
Requirements:
ruby (~2.5)./test/test.rb
Content type
Image
Digest
sha256:27b240c8f…
Size
167 MB
Last updated
over 3 years ago
docker pull perseidsproject/morpheus-perseids