com.hankcs.hanlp.suggest.scorer.lexeme
类 IdVector

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

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

一个同义词有多个id,多个同义词用这个封装做key

作者:
hankcs

字段摘要
 List<Long[]> idArrayList
           
 
构造方法摘要
IdVector(List<Long[]> idArrayList)
           
IdVector(String sentence)
           
 
方法摘要
 int compareTo(IdVector o)
           
 Double similarity(IdVector other)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

idArrayList

public List<Long[]> idArrayList
构造方法详细信息

IdVector

public IdVector(String sentence)

IdVector

public IdVector(List<Long[]> idArrayList)
方法详细信息

compareTo

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

similarity

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


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