Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/robmch/tagger
A multiclass-perceptron based Part-of-Speech tagger
https://github.com/robmch/tagger
machine-learning machinelearning natural-language-processing nlp part-of-speech part-of-speech-tagger perceptron pos-tagger pos-tagging
Last synced: 2 months ago
JSON representation
A multiclass-perceptron based Part-of-Speech tagger
- Host: GitHub
- URL: https://github.com/robmch/tagger
- Owner: RobMcH
- License: mit
- Created: 2018-02-17T09:36:09.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-21T22:16:09.000Z (about 6 years ago)
- Last Synced: 2023-07-21T14:11:08.131Z (over 1 year ago)
- Topics: machine-learning, machinelearning, natural-language-processing, nlp, part-of-speech, part-of-speech-tagger, perceptron, pos-tagger, pos-tagging
- Language: Java
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Perceptron-based Part-of-Speech Tagger
This is a multiclass-perceptron based Part-of-Speech tagger. It uses several linguistic features to determine the part of speech of a word.
This includes the word itself, the previous and following word, prefixes and suffices, automatically generated lexica, capitalization and the presence
of numbers/colons/punctuation. The data has to be in the [CoNLL format](http://universaldependencies.org/format.html).# Obtaining the Tagger
The tagger can be built from the source code or a precompiled JAR can be [obtained from GitHub](https://github.com/RobMcH/tagger/releases).# Usage
The tagger requires the Java Runtime Environment (at least Java 8) to work. It has no graphical user interface and has therefore to be run
from the command line. It accepts several arguments.java Tagger <PathToTrainingFile> <Options>
-t <PathToTestFile> [OutputPath]: Path to a test file which will be annotated. If [OutputPath] is not specified, the accuracy of the tagger and a confusion "
matrix will be printed.
-w <OutputPath>: Save the weights of the tagger to the file specified by <OutputPath>.
-p <OutputPath>: Save the predictions for the training and test file to the file specified by <OutputPath> plus an appended suffix.
-r <InputPath>: Reads sentences and their annotations from a file in the svm-multiclass format and uses this data to train a model.
-s <OutputPath>: Saves the sentences enriched with their extracted features in the file given by <OutputPath>.