class Matcher extends Logging.Loggable
Constructor and Description |
---|
Matcher(Language language,
Action[] actions,
float parameterThreshold)
Constructor of a Matcher.
|
Modifier and Type | Method and Description |
---|---|
MatchResult[] |
getMatches(Sentence sentence,
SentenceObjectSet sentenceObjects,
ContextStack generalContext,
float threshold,
WeightSet weightset)
A function which compares the
Action s with the input and returns
a MatchResult for every Action in the system of which the
matching score is higher than threshold . |
getLogger, setLogger
public MatchResult[] getMatches(Sentence sentence, SentenceObjectSet sentenceObjects, ContextStack generalContext, float threshold, WeightSet weightset)
Action
s with the input and returns
a MatchResult
for every Action
in the system of which the
matching score is higher than threshold
.sentence
- The user input Sentence
.sentenceObjects
- The SentenceObjectSet
resulting from an analysis of
the input.generalContext
- The root ContextStack
to use for global context
matching.threshold
- The score threshold under which a MatchResult
of an
Action
is not contained in the returning array.weightset
- The WeightSet
containing the weights used for
comparison.MatchResult
s with a matching score above the
threshold
.