public class AbbvGapsHmmBackwardsEvaluator extends AbbvGapsHMMEvaluator
| Modifier and Type | Class and Description |
|---|---|
protected class |
AbbvGapsHmmBackwardsEvaluator.BackwardEvalParam |
AbbvGapsHMMEvaluator.EvalParam| Modifier and Type | Field and Description |
|---|---|
protected List<Double> |
_emissionParams |
protected List<Double> |
_transitionParams |
_acronym, _currPartialWord, _currWord, _evalMat, _gapsHMM, _lParam, _partialWordParam, _sParam| Constructor and Description |
|---|
AbbvGapsHmmBackwardsEvaluator(AbbvGapsHMM abbvGapsHMM) |
| Modifier and Type | Method and Description |
|---|---|
void |
backwardEvaluate(Acronym acronym,
List<Double> transitionParams,
List<Double> emissionParams) |
protected void |
finalizeEvalMat() |
protected static int |
findNextNonLetterOrDigit(String str,
int startPos) |
protected String |
getCurrentChars(String str,
int pos,
int length)
Get characters from the string going backwards or forwards (depending on the implementing class),
and according to the specifies length.
|
protected String |
getCurrentWord(String str,
int pos)
Get the current long form word going backwards or forwards (depending on the implementing class).
|
protected static String |
getPartialStartedWord(String str,
int pos)
If pos is starting a new word in str, returns this word.
|
protected AbbvGapsHMMEvaluator.EvalParam |
getPartialWordParam(String str,
int pos) |
protected static String |
getStartedWord(String str,
int pos)
If pos is starting a new word in str, returns this word.
|
protected void |
initEvalMat() |
protected void |
initEvalParams() |
protected boolean |
transitionIsLegal(int currS,
int currL,
AbbvGapsHMM.States currState,
int prevS,
int prevL,
AbbvGapsHMM.States prevState,
AbbvGapsHMM.Transitions transition,
AbbvGapsHMM.Emissions emission) |
protected void |
updateLegalOutgoingEdges(int currS,
int currL,
AbbvGapsHMM.States currState,
int prevS,
int prevL,
AbbvGapsHMM.States prevState,
AbbvGapsHMM.Transitions transition,
AbbvGapsHMM.Emissions emission) |
andToSymbolMatch, charEqualIgnoreCase, evaluate, getEvalMatrix, posIsAtWord, posIsAtWordStart, updateOutgoingEdges, updateOutgoingEdgesStateD, updateOutgoingEdgesStateDL, updateOutgoingEdgesStateEND, updateOutgoingEdgesStateM, updateStatepublic AbbvGapsHmmBackwardsEvaluator(AbbvGapsHMM abbvGapsHMM)
public void backwardEvaluate(Acronym acronym, List<Double> transitionParams, List<Double> emissionParams)
protected void updateLegalOutgoingEdges(int currS,
int currL,
AbbvGapsHMM.States currState,
int prevS,
int prevL,
AbbvGapsHMM.States prevState,
AbbvGapsHMM.Transitions transition,
AbbvGapsHMM.Emissions emission)
updateLegalOutgoingEdges in class AbbvGapsHMMEvaluatorprotected boolean transitionIsLegal(int currS,
int currL,
AbbvGapsHMM.States currState,
int prevS,
int prevL,
AbbvGapsHMM.States prevState,
AbbvGapsHMM.Transitions transition,
AbbvGapsHMM.Emissions emission)
transitionIsLegal in class AbbvGapsHMMEvaluatorprotected String getCurrentChars(String str, int pos, int length)
AbbvGapsHMMEvaluatorgetCurrentChars in class AbbvGapsHMMEvaluatorprotected String getCurrentWord(String str, int pos)
AbbvGapsHMMEvaluatorgetCurrentWord in class AbbvGapsHMMEvaluatorprotected AbbvGapsHMMEvaluator.EvalParam getPartialWordParam(String str, int pos)
getPartialWordParam in class AbbvGapsHMMEvaluatorprotected static String getPartialStartedWord(String str, int pos)
protected static String getStartedWord(String str, int pos)
protected static int findNextNonLetterOrDigit(String str, int startPos)
protected void initEvalParams()
initEvalParams in class AbbvGapsHMMEvaluatorprotected void initEvalMat()
initEvalMat in class AbbvGapsHMMEvaluatorprotected void finalizeEvalMat()
finalizeEvalMat in class AbbvGapsHMMEvaluatorCopyright © 2016. All rights reserved.