public static class NCIntentSolver.INTENT extends Object
TERMs
, where each term consists of ITEMs
where each
item is a predicate (RULE
or one of the logical combinators) with quantifiers.CONV_INTENT
,
NON_CONV_INTENT
Constructor and Description |
---|
INTENT(String id,
boolean inclConv,
boolean ordered,
NCIntentSolver.TERM... terms)
Creates new intent with given parameters.
|
Modifier and Type | Method and Description |
---|---|
String |
getId()
Gets ID of this intent.
|
NCIntentSolver.TERM[] |
getTerms()
Gets list of terms defining this intent.
|
boolean |
isIncludeConversation()
Gets conversation policy flag.
|
boolean |
isOrdered()
Whether or not this intent is ordered, i.e.
|
String |
toString() |
public INTENT(String id, boolean inclConv, boolean ordered, NCIntentSolver.TERM... terms)
id
- Intent ID. It can be any arbitrary string meaningful for the developer.
Look at the example for one approach to provide descriptive intent IDs.inclConv
- Whether or not to include conversation into the search for this intent. If conversation
is not included than only the tokens present in the user input will be considered.ordered
- Whether or not the specified order of TERMs
is important for matching
this intent. If intent is unordered its TERMs
can be found anywhere in the string
and in any order.terms
- List of TERMs
defining this intent.public boolean isOrdered()
TERMs
is important
for matching this intent.True
if this intent is ordered, false
otherwise.public boolean isIncludeConversation()
public NCIntentSolver.TERM[] getTerms()
public String getId()
Copyright © 2013-2019 NLPCraft Project. All rights reserved.