Open topic with navigation

# [lmtool] Module Configuration

The `lmtool` module queries the language model. It can be used to retrieve the language model vocabulary list, to check whether a specific word is in the language model vocabulary, and to calculate the language model perplexity over a sample text file.

## Input and Output

Mode | Input | Output | Description
--- | --- | --- | ---
`WORD` |  |  | Does not accept any input streams or produce any output streams. Reports whether a word is present in the language model and, if it is present, its ranking (where 1 is the most common word, 2 is the second most common, and so on).
`TEXT` |  |  | Does not accept any input streams or produce any output streams. Calculates the perplexity of a language model and out-of-vocabulary, given a sample text file.
`VOCAB` |  |  | Does not accept any input streams or produce any output streams. Lists the most common words in the language model.

Examples:

    output ← lmtool(WORD,input)

    output ← lmtool(TEXT,input)

    output ← lmtool(VOCAB,input)

## Parameters

BaseLanguageModel* | CustomWeight | SearchWord
CaseMap | LMOffset | TextFile
ChronosCompat | LMScale |
CustomLanguageModel* | OutputLog* |

*You must set the value of these configuration parameters by setting the corresponding action parameters.

© 2014 - 2016 Hewlett Packard Enterprise Development LP | Send documentation feedback to HPE Close We welcome your comments! To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to AutonomyTPFeedback@hpe.com. Product: Topic Title: Help Topic: Feedback:

_HP_HTML5_bannerTitle.htm