public class WeightSet
extends java.lang.Object
Action
s in the Matcher.
First the length is compared, then the words, parameters and lastly context.
Unless you know how the weights alter the score, the use of the default
values should be sufficient.Modifier and Type | Field and Description |
---|---|
float |
ActionMultiplier
Multiplier specifying the weight of the 'Action' in the
SentenceObjectSet . |
float |
ContextPreviousSameActionPackage
Value specifying the weight when the last ContextStack item is in the
same ActionPackage as the compared element.
|
float |
ContextPreviousSameContext
Value specifying the weight when the last ContextStack item has the same
context as the compared element.
|
float |
ContextStageCurrentMultiplier
Multiplier when the context time difference is below 60s.
|
float |
ContextStageImmediateMultiplier
Multiplier when the context time difference is below 10s.
|
float |
ContextStageOutdatedMultiplier
Multiplier when the context time difference is below 3600s.
|
float |
ContextStageRecentMultiplier
Multiplier when the context time difference is below 300s.
|
float |
ElseMultiplier
Multiplier specifying the weight of the 'Else' in the
SentenceObjectSet . |
float |
HowMultiplier
Multiplier specifying the weight of the 'How' in the
SentenceObjectSet . |
float |
Length
Value specifying the weight of the length of the Action triggers.
|
float |
MainWordMultiplier
Multiplier specifying the difference between the MainWord and the
Compound.
|
float |
ParameterCount
Multiplier specifying the weight of the count of parameters specified in
the
Action . |
float |
WhatMultiplier
Multiplier specifying the weight of the 'What' in the
SentenceObjectSet . |
float |
WhoMultiplier
Multiplier specifying the weight of the 'Who' in the
SentenceObjectSet . |
float |
WordExact
When the
Word s were written in exactly the same form. |
float |
WordSame
When the
Word s have the same normal form (infinitive). |
float |
WordSynonyme
When one
Word is the synonyme of the other. |
Constructor and Description |
---|
WeightSet()
Constructor of a WeightSet with default values.
|
WeightSet(float wordSame,
float wordExact,
float wordSynonyme,
float mainWordMultiplier,
float actionMultiplier,
float whoMultiplier,
float whatMultiplier,
float howMultiplier,
float elseMultiplier,
float length,
float parameterCount,
float contextPreviousSameActionPackage,
float contextPreviousSameContext,
float contextStageImmediateMultiplier,
float contextStageCurrentMultiplier,
float contextStageRecentMultiplier,
float contextStageOutdatedMultiplier)
Constructor of a custom WeightSet.
|
public float WordSame
Word
s have the same normal form (infinitive).public float WordExact
Word
s were written in exactly the same form.public float WordSynonyme
Word
is the synonyme of the other.public float MainWordMultiplier
public float ActionMultiplier
SentenceObjectSet
.public float WhoMultiplier
SentenceObjectSet
.public float WhatMultiplier
SentenceObjectSet
.public float HowMultiplier
SentenceObjectSet
.public float ElseMultiplier
SentenceObjectSet
.public float Length
public float ParameterCount
Action
.public float ContextPreviousSameActionPackage
public float ContextPreviousSameContext
public float ContextStageImmediateMultiplier
public float ContextStageCurrentMultiplier
public float ContextStageRecentMultiplier
public float ContextStageOutdatedMultiplier
public WeightSet()
public WeightSet(float wordSame, float wordExact, float wordSynonyme, float mainWordMultiplier, float actionMultiplier, float whoMultiplier, float whatMultiplier, float howMultiplier, float elseMultiplier, float length, float parameterCount, float contextPreviousSameActionPackage, float contextPreviousSameContext, float contextStageImmediateMultiplier, float contextStageCurrentMultiplier, float contextStageRecentMultiplier, float contextStageOutdatedMultiplier)
wordSame
- Value for WordSame
property.wordExact
- Value for WordExact
property.wordSynonyme
- Value for WordSynonyme
property.mainWordMultiplier
- Value for MainWordMultiplier
property.actionMultiplier
- Value for ActionMultiplier
property.whoMultiplier
- Value for WhoMultiplier
property.whatMultiplier
- Value for WhatMultiplier
property.howMultiplier
- Value for HowMultiplier
property.elseMultiplier
- Value for ElseMultiplier
property.length
- Value for Length
property.parameterCount
- Value for ParameterCount
property.contextPreviousSameActionPackage
- Value for ContextPreviousSameActionPackage
property.contextPreviousSameContext
- Value for ContextPreviousSameContext
property.contextStageImmediateMultiplier
- Value for ContextStageImmediateMultiplier
property.contextStageCurrentMultiplier
- Value for ContextStageCurrentMultiplier
property.contextStageRecentMultiplier
- Value for ContextStageRecentMultiplier
property.contextStageOutdatedMultiplier
- Value for ContextStageOutdatedMultiplier
property.