Uses of Interface
org.apache.nlpcraft.model.NCToken
-
Packages that use NCToken Package Description org.apache.nlpcraft.model Contains main API for defining data models.org.apache.nlpcraft.model.tools.sqlgen Contains model stub generator for SQL RDBMS. -
-
Uses of NCToken in org.apache.nlpcraft.model
Methods in org.apache.nlpcraft.model that return NCToken Modifier and Type Method Description NCToken
NCTokenPredicateContext. getToken()
Gets a token this predicate is matching against.Methods in org.apache.nlpcraft.model that return types with arguments of type NCToken Modifier and Type Method Description default List<NCToken>
NCToken. findPartTokens(String... idOrAlias)
Gets the list of all part tokens with given IDs or aliases traversing entire part token graph.default List<NCToken>
NCVariant. getAbstractTokens()
Utility method that returns all abstract tokens.default List<NCToken>
NCVariant. getFreeTokens()
Utility method that returns all freeword tokens.List<List<NCToken>>
NCDialogFlowItem. getIntentTokens()
Gets a subset of tokens representing matched intent.List<List<NCToken>>
NCIntentMatch. getIntentTokens()
Gets a subset of tokens representing matched intent.default List<NCToken>
NCVariant. getMatchedTokens()
Utility method that returns all non-freeword tokens.List<NCToken>
NCToken. getPartTokens()
Gets the list of tokens this tokens is composed of.default List<NCToken>
NCVariant. getStopWordTokens()
Utility method that returns all stop word tokens.List<NCToken>
NCDialogFlowItem. getTermTokens(int idx)
Gets tokens for given term.List<NCToken>
NCDialogFlowItem. getTermTokens(String termId)
Gets tokens for given term.List<NCToken>
NCIntentMatch. getTermTokens(int idx)
Gets tokens for given term.List<NCToken>
NCIntentMatch. getTermTokens(String termId)
Gets tokens for given term.List<NCToken>
NCConversation. getTokens()
Gets an ordered list of tokens stored in the conversation STM for the current user and data model.Collection<NCToken>
NCResult. getTokens()
Gets tokens that were used to produce this query result.default List<NCToken>
NCVariant. getUserDefinedTokens()
Utility method that returns all user-defined tokens.Methods in org.apache.nlpcraft.model with parameters of type NCToken Modifier and Type Method Description boolean
NCContext. isOwnerOf(NCToken tok)
Tests if given token is part of the query this context is associated with.Method parameters in org.apache.nlpcraft.model with type arguments of type NCToken Modifier and Type Method Description void
NCConversation. clearStm(Predicate<NCToken> filter)
Removes all tokens satisfying given predicate from the conversation STM.void
NCResult. setTokens(Collection<NCToken> tokens)
Sets a collection of tokens that was used to produce this query result. -
Uses of NCToken in org.apache.nlpcraft.model.tools.sqlgen
Methods in org.apache.nlpcraft.model.tools.sqlgen with parameters of type NCToken Modifier and Type Method Description NCSqlColumn
NCSqlExtractor. extractColumn(NCToken colTok)
Extract column object from the token.NCSqlDateRange
NCSqlExtractor. extractDateRange(NCToken dateTok)
Extract date range object from givennlpcraft:date
token.NCSqlLimit
NCSqlExtractor. extractLimit(NCToken limitTok)
Extracts limit object from givennlpcraft:limit
token.List<NCSqlSort>
NCSqlExtractor. extractSort(NCToken sortTok)
Extracts sort object from givennlpcraft:sort
token.NCSqlTable
NCSqlExtractor. extractTable(NCToken tblTok)
Extract table object from the token.
-