public interface WeightVector
extends java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID |
| Modifier and Type | Method and Description |
|---|---|
double |
dotProduct(State state,
FeatureVector vector) |
FeatureVector |
extractStateFeatures(Sequence sentence,
int index) |
FeatureVector |
extractStateFeatures(State state) |
FeatureVector |
extractTransitionFeatures(State context) |
double[] |
getFloatWeights() |
double[] |
getWeights() |
void |
init(Model model,
java.util.Collection<Sequence> sequence) |
void |
scaleBy(double scale_factor) |
void |
setExtendFeatureSet(boolean extend) |
void |
setFloatWeights(double[] weights) |
void |
setPenalty(boolean b,
double accumalted_penalty) |
void |
setWeights(double[] weights) |
void |
updateWeights(State state,
double amount,
boolean transition) |
static final long serialVersionUID
void updateWeights(State state, double amount, boolean transition)
FeatureVector extractTransitionFeatures(State context)
FeatureVector extractStateFeatures(Sequence sentence, int index)
double dotProduct(State state, FeatureVector vector)
FeatureVector extractStateFeatures(State state)
void setPenalty(boolean b,
double accumalted_penalty)
void scaleBy(double scale_factor)
void setExtendFeatureSet(boolean extend)
double[] getWeights()
void setWeights(double[] weights)
double[] getFloatWeights()
void setFloatWeights(double[] weights)