public abstract class Model1Base extends AlignmentModel
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
_includeEnglishNullWord |
protected int |
maxF |
| Constructor and Description |
|---|
Model1Base(boolean incNullWord) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPartialTranslationCountsToTTable(TTable tcounts) |
protected void |
addTranslationCount(int coord,
float v) |
protected void |
addTranslationCount(int i_plus1,
int j,
float v) |
protected int |
getTranslationCoord(int i_plus1,
int j)
Normally, i is a zero based array, but since E
may have a null word, in this case, i=0 refers to the
null word, i=1 refers to the first word.
|
protected void |
initializeCountTableForSentencePair(PhrasePair pp) |
void |
writePartialCounts(org.apache.hadoop.mapred.OutputCollector<org.apache.hadoop.io.IntWritable,PartialCountContainer> output) |
addAlignmentListener, clearModel, computeAlignmentPosteriors, notifyUnalignablePair, processTrainingInstance, viterbiAlignprotected final int maxF
protected boolean _includeEnglishNullWord
public void writePartialCounts(org.apache.hadoop.mapred.OutputCollector<org.apache.hadoop.io.IntWritable,PartialCountContainer> output) throws IOException
writePartialCounts in class AlignmentModelIOExceptionpublic void addPartialTranslationCountsToTTable(TTable tcounts)
protected void initializeCountTableForSentencePair(PhrasePair pp)
protected final int getTranslationCoord(int i_plus1,
int j)
protected final void addTranslationCount(int i_plus1,
int j,
float v)
protected final void addTranslationCount(int coord,
float v)
Copyright © 2015. All rights reserved.