public class DisambiguationPatternRule extends AbstractPatternRule
| Modifier and Type | Class and Description |
|---|---|
static class |
DisambiguationPatternRule.DisambiguatorAction
Possible disambiguator actions.
|
| Modifier and Type | Method and Description |
|---|---|
List<DisambiguatedExample> |
getExamples() |
List<String> |
getUntouchedExamples() |
AnalyzedSentence |
replace(AnalyzedSentence text)
Performs disambiguation on the source sentence.
|
void |
setExamples(List<DisambiguatedExample> examples) |
void |
setNewInterpretations(AnalyzedToken[] newReadings)
Used to add new interpretations.
|
void |
setUntouchedExamples(List<String> untouchedExamples) |
getDescription, getId, match, reset, setEndPositionCorrection, setStartPositionCorrection, toStringaddRuleMatch, clearMatches, getCategory, getCorrectExamples, getIncorrectExamples, getMatches, getMatchesIndex, isDefaultOff, isInMatches, isInRemoved, isParagraphBackTrack, setAsDeleted, setCategory, setCorrectExamples, setDefaultOff, setIncorrectExamples, setParagraphBackTrack, supportsLanguagepublic final void setNewInterpretations(AnalyzedToken[] newReadings)
newReadings - An array of AnalyzedTokens. The length of the array should be the
same as the number of the tokens matched and selected by
mark/mark_from & mark_to attributes (>1).public final AnalyzedSentence replace(AnalyzedSentence text) throws IOException
text - AnalyzedSentence Sentence to be disambiguated.AnalyzedSentence Disambiguated sentence (might be
unchanged).IOExceptionpublic void setExamples(List<DisambiguatedExample> examples)
examples - the examples to setpublic List<DisambiguatedExample> getExamples()
public void setUntouchedExamples(List<String> untouchedExamples)
untouchedExamples - the untouchedExamples to setpublic List<String> getUntouchedExamples()
Copyright © 2005-2011 Daniel Naber