public abstract class IndexConsumer
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected DynamicWeights |
weights_ |
| Constructor and Description |
|---|
IndexConsumer(DynamicWeights weights,
SymbolTable<Feature> feature_map,
int num_pos_bits) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
consume(int index) |
void |
consume(ToutanovaInstance instance,
Encoder encoder) |
protected abstract boolean |
getInsert() |
void |
setWeights(DynamicWeights weights) |
protected DynamicWeights weights_
public IndexConsumer(DynamicWeights weights, SymbolTable<Feature> feature_map, int num_pos_bits)
public abstract void consume(int index)
public void consume(ToutanovaInstance instance, Encoder encoder)
protected abstract boolean getInsert()
public void setWeights(DynamicWeights weights)