# The Command Line Interface

This section details the available tools and parameters of the Command Line Interface. For a introduction in its usage please refer to .

## Doccat

Learned document categorizer

    Usage: opennlp Doccat model < documents

### DoccatTrainer

Trainer for the learnable document categorizer

    Usage: opennlp DoccatTrainer[.leipzig] [-factory factoryName] [-featureGenerators fg] [-tokenizer tokenizer]
            [-params paramsFile] -lang language -model modelFile -data sampleData [-encoding charsetName]
    Arguments description:
    	-factory factoryName
    		A sub-class of DoccatFactory where to get implementation and resources.
    	-featureGenerators fg
    		Comma separated feature generator classes. Bag of words is used if not specified.
    	-tokenizer tokenizer
    		Tokenizer implementation. WhitespaceTokenizer is used if not specified.
    	-params paramsFile
    		training parameters file.
    	-lang language
    		language which is being processed.
    	-model modelFile
    		output model file.
    	-data sampleData
    		data to be used, usually a file name.
    	-encoding charsetName
    		encoding for reading and writing text, if absent the system default is used.

The supported formats and arguments are:

Format | Argument | Value | Optional | Description
--- | --- | --- | --- | ---
leipzig | sentencesDir | sentencesDir | No | Dir with Leipig sentences to be used
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.

### DoccatEvaluator

Measures the performance of the Doccat model with the reference data

    Usage: opennlp DoccatEvaluator[.leipzig] -model model [-misclassified true|false] [-reportOutputFile
            outputFile] -data sampleData [-encoding charsetName]
    Arguments description:
    	-model model
    		the model file to be evaluated.
    	-misclassified true|false
    		if true will print false negatives and false positives.
    	-reportOutputFile outputFile
    		the path of the fine-grained report file.
    	-data sampleData
    		data to be used, usually a file name.
    	-encoding charsetName
    		encoding for reading and writing text, if absent the system default is used.

The supported formats and arguments are:

Format | Argument | Value | Optional | Description
--- | --- | --- | --- | ---
leipzig | sentencesDir | sentencesDir | No | Dir with Leipig sentences to be used
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.

### DoccatCrossValidator

K-fold cross validator for the learnable Document Categorizer

    Usage: opennlp DoccatCrossValidator[.leipzig] [-misclassified true|false] [-folds num] [-factory factoryName]
            [-featureGenerators fg] [-tokenizer tokenizer] [-params paramsFile] -lang language [-reportOutputFile
            outputFile] -data sampleData [-encoding charsetName]
    Arguments description:
    	-misclassified true|false
    		if true will print false negatives and false positives.
    	-folds num
    		number of folds, default is 10.
    	-factory factoryName
    		A sub-class of DoccatFactory where to get implementation and resources.
    	-featureGenerators fg
    		Comma separated feature generator classes. Bag of words is used if not specified.
    	-tokenizer tokenizer
    		Tokenizer implementation. WhitespaceTokenizer is used if not specified.
    	-params paramsFile
    		training parameters file.
    	-lang language
    		language which is being processed.
    	-reportOutputFile outputFile
    		the path of the fine-grained report file.
    	-data sampleData
    		data to be used, usually a file name.
    	-encoding charsetName
    		encoding for reading and writing text, if absent the system default is used.

The supported formats and arguments are:

Format | Argument | Value | Optional | Description
--- | --- | --- | --- | ---
leipzig | sentencesDir | sentencesDir | No | Dir with Leipig sentences to be used
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.

### DoccatConverter

Converts leipzig data format to native OpenNLP format

    Usage: opennlp DoccatConverter help|leipzig [help|options...]

The supported formats and arguments are:

Format | Argument | Value | Optional | Description
--- | --- | --- | --- | ---
leipzig | sentencesDir | sentencesDir | No | Dir with Leipig sentences to be used
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.

## Langdetect

### LanguageDetector

Learned language detector

    Usage: opennlp LanguageDetector model < documents

### LanguageDetectorTrainer

Trainer for the learnable language detector

    Usage: opennlp LanguageDetectorTrainer[.leipzig] -model modelFile [-params paramsFile] [-factory factoryName]
            -data sampleData [-encoding charsetName]
    Arguments description:
    	-model modelFile
    		output model file.
    	-params paramsFile
    		training parameters file.
    	-factory factoryName
    		A sub-class of LanguageDetectorFactory where to get implementation and resources.
    	-data sampleData
    		data to be used, usually a file name.
    	-encoding charsetName
    		encoding for reading and writing text, if absent the system default is used.

The supported formats and arguments are:

Format | Argument | Value | Optional | Description
--- | --- | --- | --- | ---
leipzig | sentencesDir | sentencesDir | No | Dir with Leipig sentences to be used
sentencesPerSample | sentencesPerSample | No | Number of sentences per sample
samplesPerLanguage | samplesPerLanguage | No | Number of samples per language
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.

### LanguageDetectorConverter

Converts leipzig data format to native OpenNLP format

    Usage: opennlp LanguageDetectorConverter help|leipzig [help|options...]

The supported formats and arguments are:

Format | Argument | Value | Optional | Description
--- | --- | --- | --- | ---
leipzig | sentencesDir | sentencesDir | No | Dir with Leipig sentences to be used
sentencesPerSample | sentencesPerSample | No | Number of sentences per sample
samplesPerLanguage | samplesPerLanguage | No | Number of samples per language
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.

### LanguageDetectorCrossValidator

K-fold cross validator for the learnable Language Detector

    Usage: opennlp LanguageDetectorCrossValidator[.leipzig] [-misclassified true|false] [-folds num] [-factory
            factoryName] [-params paramsFile] [-reportOutputFile outputFile] -data sampleData [-encoding
            charsetName]
    Arguments description:
    	-misclassified true|false
    		if true will print false negatives and false positives.
    	-folds num
    		number of folds, default is 10.
    	-factory factoryName
    		A sub-class of LanguageDetectorFactory where to get implementation and resources.
    	-params paramsFile
    		training parameters file.
    	-reportOutputFile outputFile
    		the path of the fine-grained report file.
    	-data sampleData
    		data to be used, usually a file name.
    	-encoding charsetName
    		encoding for reading and writing text, if absent the system default is used.

The supported formats and arguments are:

Format | Argument | Value | Optional | Description
--- | --- | --- | --- | ---
leipzig | sentencesDir | sentencesDir | No | Dir with Leipig sentences to be used
sentencesPerSample | sentencesPerSample | No | Number of sentences per sample
samplesPerLanguage | samplesPerLanguage | No | Number of samples per language
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.

### LanguageDetectorEvaluator

Measures the performance of the Language Detector model with the reference data

    Usage: opennlp LanguageDetectorEvaluator[.leipzig] -model model [-misclassified true|false]
            [-reportOutputFile outputFile] -data sampleData [-encoding charsetName]
    Arguments description:
    	-model model
    		the model file to be evaluated.
    	-misclassified true|false
    		if true will print false negatives and false positives.
    	-reportOutputFile outputFile
    		the path of the fine-grained report file.
    	-data sampleData
    		data to be used, usually a file name.
    	-encoding charsetName
    		encoding for reading and writing text, if absent the system default is used.

The supported formats and arguments are:

Format | Argument | Value | Optional | Description
--- | --- | --- | --- | ---
leipzig | sentencesDir | sentencesDir | No | Dir with Leipig sentences to be used
sentencesPerSample | sentencesPerSample | No | Number of sentences per sample
samplesPerLanguage | samplesPerLanguage | No | Number of samples per language
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.

## Dictionary

### DictionaryBuilder

Builds a new dictionary

    Usage: opennlp DictionaryBuilder -outputFile out -inputFile in [-encoding charsetName]

    Arguments description:
    	-outputFile out
    		The dictionary file.
    	-inputFile in
    		Plain file with one entry per line
    	-encoding charsetName
    		encoding for reading and writing text, if absent the system default is used.

## Tokenizer

### SimpleTokenizer

Character class tokenizer

    Usage: opennlp SimpleTokenizer < sentences

### TokenizerME

Learnable tokenizer

    Usage: opennlp TokenizerME model < sentences

### TokenizerTrainer

Trainer for the learnable tokenizer

    Usage: opennlp TokenizerTrainer[.irishsentencebank|.ad|.pos|.conllx|.namefinder|.parse|.conllu] [-factory
            factoryName] [-abbDict path] [-alphaNumOpt isAlphaNumOpt] [-params paramsFile] -lang language -model
            modelFile -data sampleData [-encoding charsetName]
    Arguments description:
    	-factory factoryName
    		A sub-class of TokenizerFactory where to get implementation and resources.
    	-abbDict path
    		abbreviation dictionary in XML format.
    	-alphaNumOpt isAlphaNumOpt
    		Optimization flag to skip alpha numeric tokens for further tokenization
    	-params paramsFile
    		training parameters file.
    	-lang language
    		language which is being processed.
    	-model modelFile
    		output model file.
    	-data sampleData
    		data to be used, usually a file name.
    	-encoding charsetName
    		encoding for reading and writing text, if absent the system default is used.

The supported formats and arguments are:

Format | Argument | Value | Optional | Description
--- | --- | --- | --- | ---
irishsentencebank | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
ad | encoding | charsetName | No | Encoding for reading and writing text, if absent the system default is used.
lang | language | No | Language which is being processed.
data | sampleData | No | Data to be used, usually a file name.
splitHyphenatedTokens | split | Yes | If true all hyphenated tokens will be separated (default true)
detokenizer | dictionary | No | Specifies the file with detokenizer dictionary.
pos | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
detokenizer | dictionary | No | Specifies the file with detokenizer dictionary.
conllx | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
detokenizer | dictionary | No | Specifies the file with detokenizer dictionary.
namefinder | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
detokenizer | dictionary | No | Specifies the file with detokenizer dictionary.
parse | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
detokenizer | dictionary | No | Specifies the file with detokenizer dictionary.
conllu | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.

### TokenizerMEEvaluator

Evaluator for the learnable tokenizer

    Usage: opennlp TokenizerMEEvaluator[.irishsentencebank|.ad|.pos|.conllx|.namefinder|.parse|.conllu] -model
            model [-misclassified true|false] -data sampleData [-encoding charsetName]
    Arguments description:
    	-model model
    		the model file to be evaluated.
    	-misclassified true|false
    		if true will print false negatives and false positives.
    	-data sampleData
    		data to be used, usually a file name.
    	-encoding charsetName
    		encoding for reading and writing text, if absent the system default is used.

The supported formats and arguments are:

Format | Argument | Value | Optional | Description
--- | --- | --- | --- | ---
irishsentencebank | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
ad | encoding | charsetName | No | Encoding for reading and writing text, if absent the system default is used.
lang | language | No | Language which is being processed.
data | sampleData | No | Data to be used, usually a file name.
splitHyphenatedTokens | split | Yes | If true all hyphenated tokens will be separated (default true)
detokenizer | dictionary | No | Specifies the file with detokenizer dictionary.
pos | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
detokenizer | dictionary | No | Specifies the file with detokenizer dictionary.
conllx | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
detokenizer | dictionary | No | Specifies the file with detokenizer dictionary.
namefinder | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
detokenizer | dictionary | No | Specifies the file with detokenizer dictionary.
parse | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
detokenizer | dictionary | No | Specifies the file with detokenizer dictionary.
conllu | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.

### TokenizerCrossValidator

K-fold cross validator for the learnable tokenizer

    Usage: opennlp TokenizerCrossValidator[.irishsentencebank|.ad|.pos|.conllx|.namefinder|.parse|.conllu]
            [-misclassified true|false] [-folds num] [-factory factoryName] [-abbDict path] [-alphaNumOpt
            isAlphaNumOpt] [-params paramsFile] -lang language -data sampleData [-encoding charsetName]
    Arguments description:
    	-misclassified true|false
    		if true will print false negatives and false positives.
    	-folds num
    		number of folds, default is 10.
    	-factory factoryName
    		A sub-class of TokenizerFactory where to get implementation and resources.
    	-abbDict path
    		abbreviation dictionary in XML format.
    	-alphaNumOpt isAlphaNumOpt
    		Optimization flag to skip alpha numeric tokens for further tokenization
    	-params paramsFile
    		training parameters file.
    	-lang language
    		language which is being processed.
    	-data sampleData
    		data to be used, usually a file name.
    	-encoding charsetName
    		encoding for reading and writing text, if absent the system default is used.

The supported formats and arguments are:

Format | Argument | Value | Optional | Description
--- | --- | --- | --- | ---
irishsentencebank | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
ad | encoding | charsetName | No | Encoding for reading and writing text, if absent the system default is used.
lang | language | No | Language which is being processed.
data | sampleData | No | Data to be used, usually a file name.
splitHyphenatedTokens | split | Yes | If true all hyphenated tokens will be separated (default true)
detokenizer | dictionary | No | Specifies the file with detokenizer dictionary.
pos | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
detokenizer | dictionary | No | Specifies the file with detokenizer dictionary.
conllx | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
detokenizer | dictionary | No | Specifies the file with detokenizer dictionary.
namefinder | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
detokenizer | dictionary | No | Specifies the file with detokenizer dictionary.
parse | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
detokenizer | dictionary | No | Specifies the file with detokenizer dictionary.
conllu | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.

### TokenizerConverter

Converts foreign data formats (irishsentencebank,ad,pos,conllx,namefinder,parse,conllu) to native OpenNLP format

    Usage: opennlp TokenizerConverter help|irishsentencebank|ad|pos|conllx|namefinder|parse|conllu
            [help|options...]

The supported formats and arguments are:

Format | Argument | Value | Optional | Description
--- | --- | --- | --- | ---
irishsentencebank | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
ad | encoding | charsetName | No | Encoding for reading and writing text, if absent the system default is used.
lang | language | No | Language which is being processed.
data | sampleData | No | Data to be used, usually a file name.
splitHyphenatedTokens | split | Yes | If true all hyphenated tokens will be separated (default true)
detokenizer | dictionary | No | Specifies the file with detokenizer dictionary.
pos | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
detokenizer | dictionary | No | Specifies the file with detokenizer dictionary.
conllx | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
detokenizer | dictionary | No | Specifies the file with detokenizer dictionary.
namefinder | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
detokenizer | dictionary | No | Specifies the file with detokenizer dictionary.
parse | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
detokenizer | dictionary | No | Specifies the file with detokenizer dictionary.
conllu | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.

### DictionaryDetokenizer

    Usage: opennlp DictionaryDetokenizer detokenizerDictionary

## Sentdetect

### SentenceDetector

Learnable sentence detector

    Usage: opennlp SentenceDetector model < sentences

### SentenceDetectorTrainer

Trainer for the learnable sentence detector

    Usage: opennlp
            SentenceDetectorTrainer[.irishsentencebank|.ad|.pos|.conllx|.namefinder|.parse|.moses|.conllu|.letsmt]
            [-factory factoryName] [-eosChars string] [-abbDict path] [-params paramsFile] -lang language -model
            modelFile -data sampleData [-encoding charsetName]
    Arguments description:
    	-factory factoryName
    		A sub-class of SentenceDetectorFactory where to get implementation and resources.
    	-eosChars string
    		EOS characters.
    	-abbDict path
    		abbreviation dictionary in XML format.
    	-params paramsFile
    		training parameters file.
    	-lang language
    		language which is being processed.
    	-model modelFile
    		output model file.
    	-data sampleData
    		data to be used, usually a file name.
    	-encoding charsetName
    		encoding for reading and writing text, if absent the system default is used.

The supported formats and arguments are:

Format | Argument | Value | Optional | Description
--- | --- | --- | --- | ---
irishsentencebank | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
ad | encoding | charsetName | No | Encoding for reading and writing text.
lang | language | No | Language which is being processed.
data | sampleData | No | Data to be used, usually a file name.
includeTitles | includeTitles | Yes | If true will include sentences marked as headlines.
pos | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
detokenizer | dictionary | No | Specifies the file with detokenizer dictionary.
conllx | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
detokenizer | dictionary | No | Specifies the file with detokenizer dictionary.
namefinder | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
detokenizer | dictionary | No | Specifies the file with detokenizer dictionary.
parse | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
detokenizer | dictionary | No | Specifies the file with detokenizer dictionary.
moses | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
conllu | sentencesPerSample | sentencesPerSample | No | Number of sentences per sample
data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
letsmt | detokenizer | dictionary | Yes | Specifies the file with detokenizer dictionary.
data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.

### SentenceDetectorEvaluator

Evaluator for the learnable sentence detector

    Usage: opennlp
            SentenceDetectorEvaluator[.irishsentencebank|.ad|.pos|.conllx|.namefinder|.parse|.moses|.conllu|.letsmt]
            -model model [-misclassified true|false] -data sampleData [-encoding charsetName]
    Arguments description:
    	-model model
    		the model file to be evaluated.
    	-misclassified true|false
    		if true will print false negatives and false positives.
    	-data sampleData
    		data to be used, usually a file name.
    	-encoding charsetName
    		encoding for reading and writing text, if absent the system default is used.

The supported formats and arguments are:

Format | Argument | Value | Optional | Description
--- | --- | --- | --- | ---
irishsentencebank | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
ad | encoding | charsetName | No | Encoding for reading and writing text.
lang | language | No | Language which is being processed.
data | sampleData | No | Data to be used, usually a file name.
includeTitles | includeTitles | Yes | If true will include sentences marked as headlines.
pos | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
detokenizer | dictionary | No | Specifies the file with detokenizer dictionary.
conllx | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
detokenizer | dictionary | No | Specifies the file with detokenizer dictionary.
namefinder | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
detokenizer | dictionary | No | Specifies the file with detokenizer dictionary.
parse | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
detokenizer | dictionary | No | Specifies the file with detokenizer dictionary.
moses | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
conllu | sentencesPerSample | sentencesPerSample | No | Number of sentences per sample
data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
letsmt | detokenizer | dictionary | Yes | Specifies the file with detokenizer dictionary.
data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.

### SentenceDetectorCrossValidator

K-fold cross validator for the learnable sentence detector

    Usage: opennlp
            SentenceDetectorCrossValidator[.irishsentencebank|.ad|.pos|.conllx|.namefinder|.parse|.moses|.conllu|.letsmt]
            [-factory factoryName] [-eosChars string] [-abbDict path] [-params paramsFile] -lang language
            [-misclassified true|false] [-folds num] -data sampleData [-encoding charsetName]
    Arguments description:
    	-factory factoryName
    		A sub-class of SentenceDetectorFactory where to get implementation and resources.
    	-eosChars string
    		EOS characters.
    	-abbDict path
    		abbreviation dictionary in XML format.
    	-params paramsFile
    		training parameters file.
    	-lang language
    		language which is being processed.
    	-misclassified true|false
    		if true will print false negatives and false positives.
    	-folds num
    		number of folds, default is 10.
    	-data sampleData
    		data to be used, usually a file name.
    	-encoding charsetName
    		encoding for reading and writing text, if absent the system default is used.

The supported formats and arguments are:

Format | Argument | Value | Optional | Description
--- | --- | --- | --- | ---
irishsentencebank | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
ad | encoding | charsetName | No | Encoding for reading and writing text.
lang | language | No | Language which is being processed.
data | sampleData | No | Data to be used, usually a file name.
includeTitles | includeTitles | Yes | If true will include sentences marked as headlines.
pos | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
detokenizer | dictionary | No | Specifies the file with detokenizer dictionary.
conllx | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
detokenizer | dictionary | No | Specifies the file with detokenizer dictionary.
namefinder | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
detokenizer | dictionary | No | Specifies the file with detokenizer dictionary.
parse | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
detokenizer | dictionary | No | Specifies the file with detokenizer dictionary.
moses | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
conllu | sentencesPerSample | sentencesPerSample | No | Number of sentences per sample
data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
letsmt | detokenizer | dictionary | Yes | Specifies the file with detokenizer dictionary.
data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.

### SentenceDetectorConverter

Converts foreign data formats (irishsentencebank,ad,pos,conllx,namefinder,parse,moses,conllu,letsmt) to native OpenNLP format

    Usage: opennlp SentenceDetectorConverter
            help|irishsentencebank|ad|pos|conllx|namefinder|parse|moses|conllu|letsmt [help|options...]

The supported formats and arguments are:

Format | Argument | Value | Optional | Description
--- | --- | --- | --- | ---
irishsentencebank | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
ad | encoding | charsetName | No | Encoding for reading and writing text.
lang | language | No | Language which is being processed.
data | sampleData | No | Data to be used, usually a file name.
includeTitles | includeTitles | Yes | If true will include sentences marked as headlines.
pos | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
detokenizer | dictionary | No | Specifies the file with detokenizer dictionary.
conllx | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
detokenizer | dictionary | No | Specifies the file with detokenizer dictionary.
namefinder | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
detokenizer | dictionary | No | Specifies the file with detokenizer dictionary.
parse | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
detokenizer | dictionary | No | Specifies the file with detokenizer dictionary.
moses | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
conllu | sentencesPerSample | sentencesPerSample | No | Number of sentences per sample
data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
letsmt | detokenizer | dictionary | Yes | Specifies the file with detokenizer dictionary.
data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.

## Namefind

### TokenNameFinder

Learnable name finder

    Usage: opennlp TokenNameFinder model1 model2 ... modelN < sentences

### TokenNameFinderTrainer

Trainer for the learnable name finder

    Usage: opennlp TokenNameFinderTrainer[.evalita|.ad|.conll03|.bionlp2004|.conll02|.muc6|.ontonotes|.brat]
            [-factory factoryName] [-resources resourcesDir] [-type modelType] [-featuregen featuregenFile]
            [-nameTypes types] [-sequenceCodec codec] [-params paramsFile] -lang language -model modelFile -data
            sampleData [-encoding charsetName]
    Arguments description:
    	-factory factoryName
    		A sub-class of TokenNameFinderFactory
    	-resources resourcesDir
    		The resources directory
    	-type modelType
    		The type of the token name finder model
    	-featuregen featuregenFile
    		The feature generator descriptor file
    	-nameTypes types
    		name types to use for training
    	-sequenceCodec codec
    		sequence codec used to code name spans
    	-params paramsFile
    		training parameters file.
    	-lang language
    		language which is being processed.
    	-model modelFile
    		output model file.
    	-data sampleData
    		data to be used, usually a file name.
    	-encoding charsetName
    		encoding for reading and writing text, if absent the system default is used.

The supported formats and arguments are:

Format | Argument | Value | Optional | Description
--- | --- | --- | --- | ---
evalita | lang | it | No |
types | per,loc,org,gpe | No |
data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
ad | encoding | charsetName | No | Encoding for reading and writing text, if absent the system default is used.
lang | language | No | Language which is being processed.
data | sampleData | No | Data to be used, usually a file name.
splitHyphenatedTokens | split | Yes | If true all hyphenated tokens will be separated (default true)
conll03 | lang | eng|deu | No |
types | per,loc,org,misc | No |
data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
bionlp2004 | types | DNA,protein,cell_type,cell_line,RNA | No |
data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
conll02 | lang | spa|nld | No |
types | per,loc,org,misc | No |
data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
muc6 | tokenizerModel | modelFile | No |
data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
ontonotes | ontoNotesDir | OntoNotes 4.0 corpus directory | No |
brat | tokenizerModel | modelFile | Yes |
ruleBasedTokenizer | name | Yes |
annotationConfig | annConfFile | No |
bratDataDir | bratDataDir | No | Location of brat data dir
recursive | value | Yes |
sentenceDetectorModel | modelFile | Yes |

### TokenNameFinderEvaluator

Measures the performance of the NameFinder model with the reference data

    Usage: opennlp TokenNameFinderEvaluator[.evalita|.ad|.conll03|.bionlp2004|.conll02|.muc6|.ontonotes|.brat]
            [-nameTypes types] -model model [-misclassified true|false] [-detailedF true|false]
            [-reportOutputFile outputFile] -data sampleData [-encoding charsetName]
    Arguments description:
    	-nameTypes types
    		name types to use for evaluation
    	-model model
    		the model file to be evaluated.
    	-misclassified true|false
    		if true will print false negatives and false positives.
    	-detailedF true|false
    		if true (default) will print detailed FMeasure results.
    	-reportOutputFile outputFile
    		the path of the fine-grained report file.
    	-data sampleData
    		data to be used, usually a file name.
    	-encoding charsetName
    		encoding for reading and writing text, if absent the system default is used.

The supported formats and arguments are:

Format | Argument | Value | Optional | Description
--- | --- | --- | --- | ---
evalita | lang | it | No |
types | per,loc,org,gpe | No |
data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
ad | encoding | charsetName | No | Encoding for reading and writing text, if absent the system default is used.
lang | language | No | Language which is being processed.
data | sampleData | No | Data to be used, usually a file name.
splitHyphenatedTokens | split | Yes | If true all hyphenated tokens will be separated (default true)
conll03 | lang | eng|deu | No |
types | per,loc,org,misc | No |
data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
bionlp2004 | types | DNA,protein,cell_type,cell_line,RNA | No |
data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
conll02 | lang | spa|nld | No |
types | per,loc,org,misc | No |
data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
muc6 | tokenizerModel | modelFile | No |
data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
ontonotes | ontoNotesDir | OntoNotes 4.0 corpus directory | No |
brat | tokenizerModel | modelFile | Yes |
ruleBasedTokenizer | name | Yes |
annotationConfig | annConfFile | No |
bratDataDir | bratDataDir | No | Location of brat data dir
recursive | value | Yes |
sentenceDetectorModel | modelFile | Yes |

### TokenNameFinderCrossValidator

K-fold cross validator for the learnable Name Finder

    Usage: opennlp
            TokenNameFinderCrossValidator[.evalita|.ad|.conll03|.bionlp2004|.conll02|.muc6|.ontonotes|.brat]
            [-factory factoryName] [-resources resourcesDir] [-type modelType] [-featuregen featuregenFile]
            [-nameTypes types] [-sequenceCodec codec] [-params paramsFile] -lang language [-misclassified
            true|false] [-folds num] [-detailedF true|false] [-reportOutputFile outputFile] -data sampleData
            [-encoding charsetName]
    Arguments description:
    	-factory factoryName
    		A sub-class of TokenNameFinderFactory
    	-resources resourcesDir
    		The resources directory
    	-type modelType
    		The type of the token name finder model
    	-featuregen featuregenFile
    		The feature generator descriptor file
    	-nameTypes types
    		name types to use for training
    	-sequenceCodec codec
    		sequence codec used to code name spans
    	-params paramsFile
    		training parameters file.
    	-lang language
    		language which is being processed.
    	-misclassified true|false
    		if true will print false negatives and false positives.
    	-folds num
    		number of folds, default is 10.
    	-detailedF true|false
    		if true (default) will print detailed FMeasure results.
    	-reportOutputFile outputFile
    		the path of the fine-grained report file.
    	-data sampleData
    		data to be used, usually a file name.
    	-encoding charsetName
    		encoding for reading and writing text, if absent the system default is used.

The supported formats and arguments are:

Format | Argument | Value | Optional | Description
--- | --- | --- | --- | ---
evalita | lang | it | No |
types | per,loc,org,gpe | No |
data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
ad | encoding | charsetName | No | Encoding for reading and writing text, if absent the system default is used.
lang | language | No | Language which is being processed.
data | sampleData | No | Data to be used, usually a file name.
splitHyphenatedTokens | split | Yes | If true all hyphenated tokens will be separated (default true)
conll03 | lang | eng|deu | No |
types | per,loc,org,misc | No |
data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
bionlp2004 | types | DNA,protein,cell_type,cell_line,RNA | No |
data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
conll02 | lang | spa|nld | No |
types | per,loc,org,misc | No |
data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
muc6 | tokenizerModel | modelFile | No |
data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
ontonotes | ontoNotesDir | OntoNotes 4.0 corpus directory | No |
brat | tokenizerModel | modelFile | Yes |
ruleBasedTokenizer | name | Yes |
annotationConfig | annConfFile | No |
bratDataDir | bratDataDir | No | Location of brat data dir
recursive | value | Yes |
sentenceDetectorModel | modelFile | Yes |

### TokenNameFinderConverter

Converts foreign data formats (evalita,ad,conll03,bionlp2004,conll02,muc6,ontonotes,brat) to native OpenNLP format

    Usage: opennlp TokenNameFinderConverter help|evalita|ad|conll03|bionlp2004|conll02|muc6|ontonotes|brat
            [help|options...]

The supported formats and arguments are:

Format | Argument | Value | Optional | Description
--- | --- | --- | --- | ---
evalita | lang | it | No |
types | per,loc,org,gpe | No |
data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
ad | encoding | charsetName | No | Encoding for reading and writing text, if absent the system default is used.
lang | language | No | Language which is being processed.
data | sampleData | No | Data to be used, usually a file name.
splitHyphenatedTokens | split | Yes | If true all hyphenated tokens will be separated (default true)
conll03 | lang | eng|deu | No |
types | per,loc,org,misc | No |
data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
bionlp2004 | types | DNA,protein,cell_type,cell_line,RNA | No |
data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
conll02 | lang | spa|nld | No |
types | per,loc,org,misc | No |
data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
muc6 | tokenizerModel | modelFile | No |
data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
ontonotes | ontoNotesDir | OntoNotes 4.0 corpus directory | No |
brat | tokenizerModel | modelFile | Yes |
ruleBasedTokenizer | name | Yes |
annotationConfig | annConfFile | No |
bratDataDir | bratDataDir | No | Location of brat data dir
recursive | value | Yes |
sentenceDetectorModel | modelFile | Yes |

### CensusDictionaryCreator

Converts 1990 US Census names into a dictionary

    Usage: opennlp CensusDictionaryCreator [-encoding charsetName] [-lang code] -censusData censusDict -dict dict

    Arguments description:
    	-encoding charsetName
    	-lang code
    	-censusData censusDict
    	-dict dict

## Postag

### POSTagger

Learnable part of speech tagger

    Usage: opennlp POSTagger model < sentences

### POSTaggerTrainer

Trains a model for the part-of-speech tagger

    Usage: opennlp POSTaggerTrainer[.ad|.conllx|.parse|.ontonotes|.conllu] [-factory factoryName] [-resources
            resourcesDir] [-tagDictCutoff tagDictCutoff] [-featuregen featuregenFile] [-dict dictionaryPath]
            [-params paramsFile] -lang language -model modelFile -data sampleData [-encoding charsetName]
    Arguments description:
    	-factory factoryName
    		A sub-class of POSTaggerFactory where to get implementation and resources.
    	-resources resourcesDir
    		The resources directory
    	-tagDictCutoff tagDictCutoff
    		TagDictionary cutoff. If specified will create/expand a mutable TagDictionary
    	-featuregen featuregenFile
    		The feature generator descriptor file
    	-dict dictionaryPath
    		The XML tag dictionary file
    	-params paramsFile
    		training parameters file.
    	-lang language
    		language which is being processed.
    	-model modelFile
    		output model file.
    	-data sampleData
    		data to be used, usually a file name.
    	-encoding charsetName
    		encoding for reading and writing text, if absent the system default is used.

The supported formats and arguments are:

Format | Argument | Value | Optional | Description
--- | --- | --- | --- | ---
ad | encoding | charsetName | No | Encoding for reading and writing text, if absent the system default is used.
lang | language | No | Language which is being processed.
data | sampleData | No | Data to be used, usually a file name.
expandME | expandME | Yes | Expand multiword expressions.
includeFeatures | includeFeatures | Yes | Combine POS Tags with word features, like number and gender.
conllx | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
parse | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
ontonotes | ontoNotesDir | OntoNotes 4.0 corpus directory | No |
conllu | tagset | tagset | Yes | U|x u for unified tags and x for language-specific part-of-speech tags
data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.

### POSTaggerEvaluator

Measures the performance of the POS tagger model with the reference data

    Usage: opennlp POSTaggerEvaluator[.ad|.conllx|.parse|.ontonotes|.conllu] -model model [-misclassified
            true|false] [-reportOutputFile outputFile] -data sampleData [-encoding charsetName]
    Arguments description:
    	-model model
    		the model file to be evaluated.
    	-misclassified true|false
    		if true will print false negatives and false positives.
    	-reportOutputFile outputFile
    		the path of the fine-grained report file.
    	-data sampleData
    		data to be used, usually a file name.
    	-encoding charsetName
    		encoding for reading and writing text, if absent the system default is used.

The supported formats and arguments are:

Format | Argument | Value | Optional | Description
--- | --- | --- | --- | ---
ad | encoding | charsetName | No | Encoding for reading and writing text, if absent the system default is used.
lang | language | No | Language which is being processed.
data | sampleData | No | Data to be used, usually a file name.
expandME | expandME | Yes | Expand multiword expressions.
includeFeatures | includeFeatures | Yes | Combine POS Tags with word features, like number and gender.
conllx | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
parse | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
ontonotes | ontoNotesDir | OntoNotes 4.0 corpus directory | No |
conllu | tagset | tagset | Yes | U|x u for unified tags and x for language-specific part-of-speech tags
data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.

### POSTaggerCrossValidator

K-fold cross validator for the learnable POS tagger

    Usage: opennlp POSTaggerCrossValidator[.ad|.conllx|.parse|.ontonotes|.conllu] [-misclassified true|false]
            [-folds num] [-factory factoryName] [-resources resourcesDir] [-tagDictCutoff tagDictCutoff]
            [-featuregen featuregenFile] [-dict dictionaryPath] [-params paramsFile] -lang language
            [-reportOutputFile outputFile] -data sampleData [-encoding charsetName]
    Arguments description:
    	-misclassified true|false
    		if true will print false negatives and false positives.
    	-folds num
    		number of folds, default is 10.
    	-factory factoryName
    		A sub-class of POSTaggerFactory where to get implementation and resources.
    	-resources resourcesDir
    		The resources directory
    	-tagDictCutoff tagDictCutoff
    		TagDictionary cutoff. If specified will create/expand a mutable TagDictionary
    	-featuregen featuregenFile
    		The feature generator descriptor file
    	-dict dictionaryPath
    		The XML tag dictionary file
    	-params paramsFile
    		training parameters file.
    	-lang language
    		language which is being processed.
    	-reportOutputFile outputFile
    		the path of the fine-grained report file.
    	-data sampleData
    		data to be used, usually a file name.
    	-encoding charsetName
    		encoding for reading and writing text, if absent the system default is used.

The supported formats and arguments are:

Format | Argument | Value | Optional | Description
--- | --- | --- | --- | ---
ad | encoding | charsetName | No | Encoding for reading and writing text, if absent the system default is used.
lang | language | No | Language which is being processed.
data | sampleData | No | Data to be used, usually a file name.
expandME | expandME | Yes | Expand multiword expressions.
includeFeatures | includeFeatures | Yes | Combine POS Tags with word features, like number and gender.
conllx | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
parse | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
ontonotes | ontoNotesDir | OntoNotes 4.0 corpus directory | No |
conllu | tagset | tagset | Yes | U|x u for unified tags and x for language-specific part-of-speech tags
data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.

### POSTaggerConverter

Converts foreign data formats (ad,conllx,parse,ontonotes,conllu) to native OpenNLP format

    Usage: opennlp POSTaggerConverter help|ad|conllx|parse|ontonotes|conllu [help|options...]

The supported formats and arguments are:

Format | Argument | Value | Optional | Description
--- | --- | --- | --- | ---
ad | encoding | charsetName | No | Encoding for reading and writing text, if absent the system default is used.
lang | language | No | Language which is being processed.
data | sampleData | No | Data to be used, usually a file name.
expandME | expandME | Yes | Expand multiword expressions.
includeFeatures | includeFeatures | Yes | Combine POS Tags with word features, like number and gender.
conllx | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
parse | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.
ontonotes | ontoNotesDir | OntoNotes 4.0 corpus directory | No |
conllu | tagset | tagset | Yes | U|x u for unified tags and x for language-specific part-of-speech tags
data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.

## Lemmatizer

### LemmatizerME

Learnable lemmatizer

    Usage: opennlp LemmatizerME model < sentences

### LemmatizerTrainerME

Trainer for the learnable lemmatizer

    Usage: opennlp LemmatizerTrainerME[.conllu] [-factory factoryName] [-params paramsFile] -lang language -model
            modelFile -data sampleData [-encoding charsetName]
    Arguments description:
    	-factory factoryName
    		A sub-class of LemmatizerFactory where to get implementation and resources.
    	-params paramsFile
    		training parameters file.
    	-lang language
    		language which is being processed.
    	-model modelFile
    		output model file.
    	-data sampleData
    		data to be used, usually a file name.
    	-encoding charsetName
    		encoding for reading and writing text, if absent the system default is used.

The supported formats and arguments are:

Format | Argument | Value | Optional | Description
--- | --- | --- | --- | ---
conllu | tagset | tagset | Yes | U|x u for unified tags and x for language-specific part-of-speech tags
data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.

### LemmatizerEvaluator

Measures the performance of the Lemmatizer model with the reference data

    Usage: opennlp LemmatizerEvaluator[.conllu] -model model [-misclassified true|false] [-reportOutputFile
            outputFile] -data sampleData [-encoding charsetName]
    Arguments description:
    	-model model
    		the model file to be evaluated.
    	-misclassified true|false
    		if true will print false negatives and false positives.
    	-reportOutputFile outputFile
    		the path of the fine-grained report file.
    	-data sampleData
    		data to be used, usually a file name.
    	-encoding charsetName
    		encoding for reading and writing text, if absent the system default is used.

The supported formats and arguments are:

Format | Argument | Value | Optional | Description
--- | --- | --- | --- | ---
conllu | tagset | tagset | Yes | U|x u for unified tags and x for language-specific part-of-speech tags
data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.

## Chunker

### ChunkerME

Learnable chunker

    Usage: opennlp ChunkerME model < sentences

### ChunkerTrainerME

Trainer for the learnable chunker

    Usage: opennlp ChunkerTrainerME[.ad] [-factory factoryName] [-params paramsFile] -lang language -model
            modelFile -data sampleData [-encoding charsetName]
    Arguments description:
    	-factory factoryName
    		A sub-class of ChunkerFactory where to get implementation and resources.
    	-params paramsFile
    		training parameters file.
    	-lang language
    		language which is being processed.
    	-model modelFile
    		output model file.
    	-data sampleData
    		data to be used, usually a file name.
    	-encoding charsetName
    		encoding for reading and writing text, if absent the system default is used.

The supported formats and arguments are:

Format | Argument | Value | Optional | Description
--- | --- | --- | --- | ---
ad | encoding | charsetName | No | Encoding for reading and writing text, if absent the system default is used.
lang | language | No | Language which is being processed.
end | end | Yes | Index of last sentence
start | start | Yes | Index of first sentence
data | sampleData | No | Data to be used, usually a file name.

### ChunkerEvaluator

Measures the performance of the Chunker model with the reference data

    Usage: opennlp ChunkerEvaluator[.ad] -model model [-misclassified true|false] [-detailedF true|false] -data
            sampleData [-encoding charsetName]
    Arguments description:
    	-model model
    		the model file to be evaluated.
    	-misclassified true|false
    		if true will print false negatives and false positives.
    	-detailedF true|false
    		if true (default) will print detailed FMeasure results.
    	-data sampleData
    		data to be used, usually a file name.
    	-encoding charsetName
    		encoding for reading and writing text, if absent the system default is used.

The supported formats and arguments are:

Format | Argument | Value | Optional | Description
--- | --- | --- | --- | ---
ad | encoding | charsetName | No | Encoding for reading and writing text, if absent the system default is used.
lang | language | No | Language which is being processed.
end | end | Yes | Index of last sentence
start | start | Yes | Index of first sentence
data | sampleData | No | Data to be used, usually a file name.

### ChunkerCrossValidator

K-fold cross validator for the chunker

    Usage: opennlp ChunkerCrossValidator[.ad] [-factory factoryName] [-params paramsFile] -lang language
            [-misclassified true|false] [-folds num] [-detailedF true|false] -data sampleData [-encoding
            charsetName]
    Arguments description:
    	-factory factoryName
    		A sub-class of ChunkerFactory where to get implementation and resources.
    	-params paramsFile
    		training parameters file.
    	-lang language
    		language which is being processed.
    	-misclassified true|false
    		if true will print false negatives and false positives.
    	-folds num
    		number of folds, default is 10.
    	-detailedF true|false
    		if true (default) will print detailed FMeasure results.
    	-data sampleData
    		data to be used, usually a file name.
    	-encoding charsetName
    		encoding for reading and writing text, if absent the system default is used.

The supported formats and arguments are:

Format | Argument | Value | Optional | Description
--- | --- | --- | --- | ---
ad | encoding | charsetName | No | Encoding for reading and writing text, if absent the system default is used.
lang | language | No | Language which is being processed.
end | end | Yes | Index of last sentence
start | start | Yes | Index of first sentence
data | sampleData | No | Data to be used, usually a file name.

### ChunkerConverter

Converts ad data format to native OpenNLP format

    Usage: opennlp ChunkerConverter help|ad [help|options...]

The supported formats and arguments are:

Format | Argument | Value | Optional | Description
--- | --- | --- | --- | ---
ad | encoding | charsetName | No | Encoding for reading and writing text, if absent the system default is used.
lang | language | No | Language which is being processed.
end | end | Yes | Index of last sentence
start | start | Yes | Index of first sentence
data | sampleData | No | Data to be used, usually a file name.

## Parser

Performs full syntactic parsing

    Usage: opennlp Parser [-bs n -ap n -k n -tk tok_model] model < sentences
    -bs n: Use a beam size of n.
    -ap f: Advance outcomes in with at least f% of the probability mass.
    -k n: Show the top n parses.  This will also display their log-probablities.
    -tk tok_model: Use the specified tokenizer model to tokenize the sentences. Defaults to a WhitespaceTokenizer.

### ParserTrainer

Trains the learnable parser

    Usage: opennlp ParserTrainer[.ontonotes|.frenchtreebank] [-headRulesSerializerImpl className] -headRules
            headRulesFile [-parserType CHUNKING|TREEINSERT] [-fun true|false] [-params paramsFile] -lang language
            -model modelFile [-encoding charsetName] -data sampleData
    Arguments description:
    	-headRulesSerializerImpl className
    		head rules artifact serializer class name
    	-headRules headRulesFile
    		head rules file.
    	-parserType CHUNKING|TREEINSERT
    		one of CHUNKING or TREEINSERT, default is CHUNKING.
    	-fun true|false
    		Learn to generate function tags.
    	-params paramsFile
    		training parameters file.
    	-lang language
    		language which is being processed.
    	-model modelFile
    		output model file.
    	-encoding charsetName
    		encoding for reading and writing text, if absent the system default is used.
    	-data sampleData
    		data to be used, usually a file name.

The supported formats and arguments are:

Format | Argument | Value | Optional | Description
--- | --- | --- | --- | ---
ontonotes | ontoNotesDir | OntoNotes 4.0 corpus directory | No |
frenchtreebank | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.

### ParserEvaluator

Measures the performance of the Parser model with the reference data

    Usage: opennlp ParserEvaluator[.ontonotes|.frenchtreebank] -model model [-misclassified true|false] -data
            sampleData [-encoding charsetName]
    Arguments description:
    	-model model
    		the model file to be evaluated.
    	-misclassified true|false
    		if true will print false negatives and false positives.
    	-data sampleData
    		data to be used, usually a file name.
    	-encoding charsetName
    		encoding for reading and writing text, if absent the system default is used.

The supported formats and arguments are:

Format | Argument | Value | Optional | Description
--- | --- | --- | --- | ---
ontonotes | ontoNotesDir | OntoNotes 4.0 corpus directory | No |
frenchtreebank | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.

### ParserConverter

Converts foreign data formats (ontonotes,frenchtreebank) to native OpenNLP format

    Usage: opennlp ParserConverter help|ontonotes|frenchtreebank [help|options...]

The supported formats and arguments are:

Format | Argument | Value | Optional | Description
--- | --- | --- | --- | ---
ontonotes | ontoNotesDir | OntoNotes 4.0 corpus directory | No |
frenchtreebank | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.

### BuildModelUpdater

Trains and updates the build model in a parser model

    Usage: opennlp BuildModelUpdater[.ontonotes|.frenchtreebank] -model modelFile [-params paramsFile] -lang
            language -data sampleData [-encoding charsetName]
    Arguments description:
    	-model modelFile
    		output model file.
    	-params paramsFile
    		training parameters file.
    	-lang language
    		language which is being processed.
    	-data sampleData
    		data to be used, usually a file name.
    	-encoding charsetName
    		encoding for reading and writing text, if absent the system default is used.

The supported formats and arguments are:

Format | Argument | Value | Optional | Description
--- | --- | --- | --- | ---
ontonotes | ontoNotesDir | OntoNotes 4.0 corpus directory | No |
frenchtreebank | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.

### CheckModelUpdater

Trains and updates the check model in a parser model

    Usage: opennlp CheckModelUpdater[.ontonotes|.frenchtreebank] -model modelFile [-params paramsFile] -lang
            language -data sampleData [-encoding charsetName]
    Arguments description:
    	-model modelFile
    		output model file.
    	-params paramsFile
    		training parameters file.
    	-lang language
    		language which is being processed.
    	-data sampleData
    		data to be used, usually a file name.
    	-encoding charsetName
    		encoding for reading and writing text, if absent the system default is used.

The supported formats and arguments are:

Format | Argument | Value | Optional | Description
--- | --- | --- | --- | ---
ontonotes | ontoNotesDir | OntoNotes 4.0 corpus directory | No |
frenchtreebank | data | sampleData | No | Data to be used, usually a file name.
encoding | charsetName | Yes | Encoding for reading and writing text, if absent the system default is used.

### TaggerModelReplacer

Replaces the tagger model in a parser model

    Usage: opennlp TaggerModelReplacer parser.model tagger.model

## Entitylinker

Links an entity to an external data set

    Usage: opennlp EntityLinker model < sentences

## Languagemodel

### NGramLanguageModel

Gives the probability and most probable next token(s) of a sequence of tokens in a language model

    Usage: opennlp NGramLanguageModel model