|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UnknownWordModelTrainer
An interface for training an UnknownWordModel. Once initialized, you can feed it trees and then call finishTraining to get the UnknownWordModel.
Field Summary | |
---|---|
static IntTaggedWord |
NULL_ITW
|
static short |
nullTag
|
static int |
nullWord
|
static String |
unknown
|
Method Summary | |
---|---|
UnknownWordModel |
finishTraining()
Returns the trained UWM. |
void |
incrementTreesRead(double weight)
|
void |
initializeTraining(Options op,
Lexicon lex,
Index<String> wordIndex,
Index<String> tagIndex,
double totalTrees)
Initialize the trainer with a few of the data structures it needs to train. |
void |
train(Collection<Tree> trees)
Tallies statistics for this particular collection of trees. |
void |
train(Collection<Tree> trees,
double weight)
Tallies statistics for a weighted collection of trees. |
void |
train(TaggedWord tw,
int loc,
double weight)
Tallies statistics for a single word. |
void |
train(Tree tree,
double weight)
Tallies statistics for a single tree. |
Field Detail |
---|
static final String unknown
static final int nullWord
static final short nullTag
static final IntTaggedWord NULL_ITW
Method Detail |
---|
void initializeTraining(Options op, Lexicon lex, Index<String> wordIndex, Index<String> tagIndex, double totalTrees)
void train(Collection<Tree> trees)
void train(Collection<Tree> trees, double weight)
void train(Tree tree, double weight)
void train(TaggedWord tw, int loc, double weight)
void incrementTreesRead(double weight)
UnknownWordModel finishTraining()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |