public abstract class AbstractModel extends Object implements ModelGraph
Abstract class for model graph
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Modifier and Type | Field and Description |
|---|---|
protected String |
name |
protected int |
numLabels |
| Constructor and Description |
|---|
AbstractModel(int labelNum,
String name) |
| Modifier and Type | Method and Description |
|---|---|
int |
getLabelNum()
Gets the number of unique labels.
|
int |
getMarkovOrder()
Gets the order of the markov chain.
|
static ModelGraph |
getNewModelGraph(int numLabels,
String modelSpecs) |
int |
getOriginalLabelNum()
Gets the number of original unique labels no matter what order the markov chain is.
|
int |
getStateNum()
Gets the number of states.
|
boolean |
mapLabelToState(DataSequence seq)
Maps labels to states.
|
boolean |
mapLabelToState(DataSequence data,
int len,
int start)
This method is used by inner model only
|
boolean |
mapStateToLabel(DataSequence seq)
Maps states to labels.
|
void |
printGraph() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEdgeIterator, getEdgeNum, getEndState, getEndStateNum, getLabel, getStartState, getStartStateNum, isEndState, isStartStateprotected int numLabels
protected String name
public AbstractModel(int labelNum,
String name)
public int getLabelNum()
ModelGraphgetLabelNum in interface ModelGraphpublic int getStateNum()
ModelGraphgetStateNum in interface ModelGraphpublic int getOriginalLabelNum()
ModelGraphgetOriginalLabelNum in interface ModelGraphpublic int getMarkovOrder()
ModelGraphgetMarkovOrder in interface ModelGraphpublic boolean mapStateToLabel(DataSequence seq)
ModelGraphmapStateToLabel in interface ModelGraphseq - the sequence for mappingpublic boolean mapLabelToState(DataSequence seq)
ModelGraphmapLabelToState in interface ModelGraphseq - the sequence for mappingpublic boolean mapLabelToState(DataSequence data, int len, int start)
ModelGraphmapLabelToState in interface ModelGraphdata - the sequence for mappinglen - the number of tokens for mappingstart - the position of the starting tokenpublic void printGraph()
public static ModelGraph getNewModelGraph(int numLabels, String modelSpecs)
Copyright © 2018 JULIE Lab, Germany. All rights reserved.