A command-line tool for extracting tokens from MorphAdorner files.
C Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
AUTHORS
COPYING
ChangeLog
INSTALL
Makefile.am
NEWS
README
README.md
autogen.sh
configure.ac

README.md

MorphExtractor

Version 0.10.1-beta

This is beta software, which means that it has not been extensively tested or compiled on a wide variety of platforms. Bug reports may be filed in the Issues section of the GitHub repository.

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.

Downloading

The latest version of MorphExtractor is available here

Usage

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

MorphExtractor uses libxml2 and pkg-config -- both of which are widely available through package managers for UNIX-like systems.

To compile and install:

tar -xvzf mextract.tar.gz
cd mextract
autogen.sh
./configure
make
make install

Copying

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/.