$nlp
The $nlp
built-in service provides methods to manage patterns, word classification, coordination, etc.
Includes the following methods:
Method | Description |
---|---|
conform | Coordination of a word with a numeral. |
createClassifier | Use this function to create a classifier object and use it from the JS script. |
fixKeyboardLayout | The method corrects the text by changing the Latin keyboard to Cyrillic. |
inflect | Declines the word to the desired format. |
match | Matches patterns for the text specified. Returns a NLPResult object that specifies which pattern was triggered in which state and contains a parseTree object. |
matchExamples | Matches the text against the specified set of examples. |
matchPatterns | Matches patterns for the text specified. Returns a NLPResult object that specifies which pattern was triggered and contains a ParseTree object. |
parseMorph | Performs the morphological analysis of a word. |
setClass | You can use this function to assign any nlp class to a pair of client/bot phrases, and this class will be displayed in the Class field in the dialog history. |