com.hankcs.hanlp.dictionary
类 BaseSearcher<V>

java.lang.Object
  继承者 com.hankcs.hanlp.dictionary.BaseSearcher<V>
直接已知子类:
BaseChineseDictionary.Searcher, CommonDictionary.Searcher, EasyDictionary.Searcher, JapanesePersonDictionary.Searcher, PinyinDictionary.Searcher

public abstract class BaseSearcher<V>
extends Object

查询字典者

作者:
He Han

字段摘要
protected  char[] c
          待分词文本的char
protected  int offset
          指向当前处理字串的开始位置(前面的已经分词分完了)
 
构造方法摘要
protected BaseSearcher(char[] c)
           
protected BaseSearcher(String text)
           
 
方法摘要
 int getOffset()
          获取当前偏移
abstract  Map.Entry<String,V> next()
          分出下一个词
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

c

protected char[] c
待分词文本的char


offset

protected int offset
指向当前处理字串的开始位置(前面的已经分词分完了)

构造方法详细信息

BaseSearcher

protected BaseSearcher(char[] c)

BaseSearcher

protected BaseSearcher(String text)
方法详细信息

next

public abstract Map.Entry<String,V> next()
分出下一个词

返回:

getOffset

public int getOffset()
获取当前偏移

返回:


Copyright © 2014–2015 鐮佸啘鍦�/a>. All rights reserved.