public class AbbvGapsHmmForwardEvaluator extends AbbvGapsHMMEvaluator
| Modifier and Type | Class and Description |
|---|---|
protected class |
AbbvGapsHmmForwardEvaluator.ForwardEvalParam |
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 |
|---|
AbbvGapsHmmForwardEvaluator(AbbvGapsHMM abbvGapsHMM) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
finalizeEvalMat() |
protected static int |
findLastNonLetterOrDigit(String str,
int startPos) |
void |
forwardEvaluate(Acronym acronym,
List<Double> transitionParams,
List<Double> emissionParams) |
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 |
getEndedWord(String str,
int pos)
If pos is ending a word in str: returns this word.
|
protected static String |
getPartialEndedWord(String str,
int pos)
If pos is ending a word in str: returns this word.
|
protected AbbvGapsHMMEvaluator.EvalParam |
getPartialWordParam(String str,
int pos) |
protected void |
initEvalMat() |
protected void |
initEvalParams() |
protected static boolean |
posIsAtWordEnd(String str,
int pos) |
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 AbbvGapsHmmForwardEvaluator(AbbvGapsHMM abbvGapsHMM)
public void forwardEvaluate(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 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 getPartialEndedWord(String str, int pos)
protected static String getEndedWord(String str, int pos)
protected static boolean posIsAtWordEnd(String str, int pos)
protected static int findLastNonLetterOrDigit(String str, int startPos)
protected void initEvalParams()
initEvalParams in class AbbvGapsHMMEvaluatorprotected void initEvalMat()
initEvalMat in class AbbvGapsHMMEvaluatorprotected void finalizeEvalMat()
finalizeEvalMat 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 AbbvGapsHMMEvaluatorCopyright © 2016. All rights reserved.