Home » lucene-3.0.1-src » org.apache.lucene.analysis.cn.smart.hhmm » [javadoc | source]
org.apache.lucene.analysis.cn.smart.hhmm
class: SegGraph [javadoc | source]
java.lang.Object
   org.apache.lucene.analysis.cn.smart.hhmm.SegGraph
Graph representing possible tokens at each start offset in the sentence.

For each start offset, a list of possible tokens is stored.

WARNING: The status of the analyzers/smartcn analysis.cn.smart package is experimental. The APIs and file formats introduced here might change in the future and will not be supported anymore in such a case.

Method from org.apache.lucene.analysis.cn.smart.hhmm.SegGraph Summary:
addToken,   getMaxStart,   getStartList,   isStartExist,   makeIndex,   toString,   toTokenList
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.lucene.analysis.cn.smart.hhmm.SegGraph Detail:
 public  void addToken(SegToken token) 
    Add a SegToken to the mapping, creating a new mapping at the token's startOffset if one does not exist.
 public int getMaxStart() 
    Get the highest start offset in the map
 public List<SegToken> getStartList(int s) 
    Get the list of tokens at the specified start offset
 public boolean isStartExist(int s) 
    Returns true if a mapping for the specified start offset exists
 public List<SegToken> makeIndex() 
    Set the SegToken#index for each token, based upon its order by startOffset.
 public String toString() 
 public List<SegToken> toTokenList() 
    Return a List of all tokens in the map, ordered by startOffset.