com.hankcs.hanlp.suggest.scorer.pinyin
类 PinyinKey

java.lang.Object
  继承者 com.hankcs.hanlp.suggest.scorer.pinyin.PinyinKey
所有已实现的接口:
ISentenceKey<PinyinKey>, Comparable<PinyinKey>

public class PinyinKey
extends Object
implements Comparable<PinyinKey>, ISentenceKey<PinyinKey>

作者:
hankcs

构造方法摘要
PinyinKey(String sentence)
           
 
方法摘要
 int compareTo(PinyinKey o)
           
 char[] getFirstCharArray()
           
 Double similarity(PinyinKey other)
           
 int size()
          拼音的个数
 String toString()
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

PinyinKey

public PinyinKey(String sentence)
方法详细信息

compareTo

public int compareTo(PinyinKey o)
指定者:
接口 Comparable<PinyinKey> 中的 compareTo

similarity

public Double similarity(PinyinKey other)
指定者:
接口 ISentenceKey<PinyinKey> 中的 similarity

size

public int size()
拼音的个数

返回:

toString

public String toString()
覆盖:
Object 中的 toString

getFirstCharArray

public char[] getFirstCharArray()


Copyright © 2014–2015 码农场. All rights reserved.