public interface ModelGraph
Interface of model graph
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Modifier and Type | Method and Description |
|---|---|
EdgeIterator |
getEdgeIterator() |
int |
getEdgeNum() |
int |
getEndState(int index)
Gets the index-th ending state.
|
int |
getEndStateNum() |
int |
getLabel(int state)
Gets the label of the state.
|
int |
getLabelNum()
Gets the number of unique labels.
|
int |
getMarkovOrder()
Gets the order of the markov chain.
|
int |
getOriginalLabelNum()
Gets the number of original unique labels no matter what order the markov chain is.
|
int |
getStartState(int index)
Gets the index-th starting state.
|
int |
getStartStateNum() |
int |
getStateNum()
Gets the number of states.
|
boolean |
isEndState(int i)
Tests if the i-th state is an ending state
|
boolean |
isStartState(int i)
Tests if the i-th state is a starting state
|
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.
|
int getStateNum()
int getStartStateNum()
int getEndStateNum()
boolean isEndState(int i)
i - the i-th stateboolean isStartState(int i)
i - the i-th stateint getStartState(int index)
index - the index-th starting stateint getEndState(int index)
index - the index-th ending stateint getEdgeNum()
int getLabel(int state)
state - the index of the stateint getLabelNum()
int getOriginalLabelNum()
int getMarkovOrder()
EdgeIterator getEdgeIterator()
boolean mapStateToLabel(DataSequence seq)
seq - the sequence for mappingboolean mapLabelToState(DataSequence seq)
seq - the sequence for mappingboolean mapLabelToState(DataSequence data, int len, int start)
data - the sequence for mappinglen - the number of tokens for mappingstart - the position of the starting tokenCopyright © 2018 JULIE Lab, Germany. All rights reserved.