public abstract class AbbvGapsHMMEvaluator extends Object
| Modifier and Type | Class and Description |
|---|---|
protected class |
AbbvGapsHMMEvaluator.EvalParam |
| Modifier and Type | Field and Description |
|---|---|
protected Acronym |
_acronym |
protected String |
_currPartialWord |
protected String |
_currWord |
protected Matrix3D |
_evalMat |
protected AbbvGapsHMM |
_gapsHMM |
protected AbbvGapsHMMEvaluator.EvalParam |
_lParam |
protected AbbvGapsHMMEvaluator.EvalParam |
_partialWordParam |
protected AbbvGapsHMMEvaluator.EvalParam |
_sParam |
| Constructor and Description |
|---|
AbbvGapsHMMEvaluator(AbbvGapsHMM abbvGapsHMM) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
andToSymbolMatch(char c) |
protected boolean |
charEqualIgnoreCase(char c1,
char c2) |
protected void |
evaluate(Acronym acronym)
This function enumerates the possible transitions and emissions in a hard coded way, in order to save running-time
|
protected abstract void |
finalizeEvalMat() |
protected abstract 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 abstract String |
getCurrentWord(String str,
int pos)
Get the current long form word going backwards or forwards (depending on the implementing class).
|
Matrix3D |
getEvalMatrix() |
protected abstract AbbvGapsHMMEvaluator.EvalParam |
getPartialWordParam(String str,
int pos) |
protected abstract void |
initEvalMat() |
protected abstract void |
initEvalParams() |
protected static boolean |
posIsAtWord(String str,
int pos) |
protected static boolean |
posIsAtWordStart(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 abstract void |
updateLegalOutgoingEdges(int currS,
int currL,
AbbvGapsHMM.States currState,
int prevS,
int prevL,
AbbvGapsHMM.States prevState,
AbbvGapsHMM.Transitions transition,
AbbvGapsHMM.Emissions emission) |
protected void |
updateOutgoingEdges(int currS,
int currL,
AbbvGapsHMM.States currState,
int prevS,
int prevL,
AbbvGapsHMM.States prevState,
AbbvGapsHMM.Transitions transition,
AbbvGapsHMM.Emissions emission) |
protected void |
updateOutgoingEdgesStateD(int currS,
int currL,
int prevS,
int prevL,
AbbvGapsHMM.Emissions emission)
Enumerates the possible transitions into state D.
|
protected void |
updateOutgoingEdgesStateDL(int currS,
int currL,
int prevS,
int prevL,
AbbvGapsHMM.Emissions emission)
Enumerates the possible transitions into state DL.
|
protected void |
updateOutgoingEdgesStateEND(int currS,
int currL,
int prevS,
int prevL,
AbbvGapsHMM.Emissions emission)
Enumerates the possible transitions into state END.
|
protected void |
updateOutgoingEdgesStateM(int currS,
int currL,
int prevS,
int prevL,
AbbvGapsHMM.Emissions emission)
Enumerates the possible transitions into state M.
|
protected void |
updateState(AbbvGapsHMM.States s,
int currS,
int currL,
int prevS,
int prevL,
AbbvGapsHMM.Emissions emission) |
protected AbbvGapsHMM _gapsHMM
protected Matrix3D _evalMat
protected AbbvGapsHMMEvaluator.EvalParam _sParam
protected AbbvGapsHMMEvaluator.EvalParam _lParam
protected AbbvGapsHMMEvaluator.EvalParam _partialWordParam
protected Acronym _acronym
protected String _currWord
protected String _currPartialWord
public AbbvGapsHMMEvaluator(AbbvGapsHMM abbvGapsHMM)
protected abstract void updateLegalOutgoingEdges(int currS,
int currL,
AbbvGapsHMM.States currState,
int prevS,
int prevL,
AbbvGapsHMM.States prevState,
AbbvGapsHMM.Transitions transition,
AbbvGapsHMM.Emissions emission)
protected abstract void initEvalMat()
protected abstract void finalizeEvalMat()
protected abstract String getCurrentWord(String str, int pos)
protected abstract String getCurrentChars(String str, int pos, int length)
protected abstract AbbvGapsHMMEvaluator.EvalParam getPartialWordParam(String str, int pos)
protected abstract void initEvalParams()
public Matrix3D getEvalMatrix()
protected void evaluate(Acronym acronym)
protected static boolean posIsAtWordStart(String str, int pos)
protected boolean charEqualIgnoreCase(char c1,
char c2)
protected boolean andToSymbolMatch(char c)
protected static boolean posIsAtWord(String str, int pos)
protected void updateState(AbbvGapsHMM.States s, int currS, int currL, int prevS, int prevL, AbbvGapsHMM.Emissions emission)
protected void updateOutgoingEdgesStateM(int currS,
int currL,
int prevS,
int prevL,
AbbvGapsHMM.Emissions emission)
currS - currL - prevS - prevL - protected void updateOutgoingEdgesStateD(int currS,
int currL,
int prevS,
int prevL,
AbbvGapsHMM.Emissions emission)
protected void updateOutgoingEdgesStateDL(int currS,
int currL,
int prevS,
int prevL,
AbbvGapsHMM.Emissions emission)
protected void updateOutgoingEdgesStateEND(int currS,
int currL,
int prevS,
int prevL,
AbbvGapsHMM.Emissions emission)
protected void updateOutgoingEdges(int currS,
int currL,
AbbvGapsHMM.States currState,
int prevS,
int prevL,
AbbvGapsHMM.States prevState,
AbbvGapsHMM.Transitions transition,
AbbvGapsHMM.Emissions emission)
protected boolean transitionIsLegal(int currS,
int currL,
AbbvGapsHMM.States currState,
int prevS,
int prevL,
AbbvGapsHMM.States prevState,
AbbvGapsHMM.Transitions transition,
AbbvGapsHMM.Emissions emission)
Copyright © 2016. All rights reserved.