public static final class NCIntentSolver.TERM extends Object
Constructor and Description |
---|
TERM(NCIntentSolver.ITEM... items)
Creates new term with given parameters.
|
TERM(NCIntentSolver.Predicate pred,
int min,
int max)
Shortcut constructor for term with a single item.
|
TERM(String expr,
int min,
int max)
Shortcut constructor for term with a single string-based rule.
|
Modifier and Type | Method and Description |
---|---|
NCIntentSolver.ITEM[] |
getItems()
Gets the collection of term items.
|
String |
toString() |
public TERM(NCIntentSolver.ITEM... items)
items
- List of items that define conditions for that term to match.public TERM(NCIntentSolver.Predicate pred, int min, int max)
this(new ITEM(ptrn, min, max));
pred
- Built-in token predicate: either one of the logical combinators or RULE
.min
- Minimum quantifier for this predicate.max
- Maximum quantifier for this predicate.public TERM(String expr, int min, int max)
this((String)null, new ITEM(new RULE(expr), min, max));
expr
- Whitespace separated string of parameter, its operation and value for the RULE
.min
- Minimum quantifier for this predicate.max
- Maximum quantifier for this predicate.public NCIntentSolver.ITEM[] getItems()
Copyright © 2013-2019 NLPCraft Project. All rights reserved.