MorphExtractor is a command-line tool for extracting tokens from MorphAdorner files. It is particularly useful in the context of a UNIX pipeline.
The data that can be extracted corresponds roughly to the attributes on the
<w> tag in an adorned file. For details on the meaning of these attributes and how they are derived, please consult the documentation for MorphAdorner itself. The documentation for the NUPOS tag set may be particularly useful for extracting particular parts of speech.
The latest version of MorphExtractor is available here
mextract [OPTIONS]... [FILE] Content Options (one of): -l, --lemma The lemma head word form(s) of the token. -r, --regular A standardized version of the spelling. -s, --spelling The spelling (without specialized meta-characters. XPath specifiers: -p, --pos="n" Part of speech (where n is a NUPOS tag) -e, --eos At end of sentence. By default, `mextract` will return all tokens (i.e. //w/@tok).
Compiling and Installing MorphExtractor
To compile and install:
tar -xvzf mextract.tar.gz cd mextract autogen.sh ./configure make make install
MorphExtractor is written and maintained by Stephen Ramsay.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.