| Package | Description |
|---|---|
| com.hankcs.hanlp.corpus.dictionary | |
| com.hankcs.hanlp.corpus.occurrence | |
| com.hankcs.hanlp.mining.word |
| Modifier and Type | Method and Description |
|---|---|
protected Map.Entry<String,TermFrequency> |
TFDictionary.onGenerateEntry(String line) |
TreeSet<TermFrequency> |
TFDictionary.values()
按照频率从高到低排序的条目
|
| Modifier and Type | Class and Description |
|---|---|
class |
PairFrequency
一个二元的词串的频度
|
class |
TriaFrequency
一个二元的词串的频度
|
| Modifier and Type | Method and Description |
|---|---|
Set<Map.Entry<String,TermFrequency>> |
TermOccurrence.getEntrySet() |
Set<Map.Entry<String,TermFrequency>> |
Occurrence.getUniGram()
获取一阶共现,其实就是词频统计
|
| Modifier and Type | Method and Description |
|---|---|
int |
TermFrequency.compareTo(TermFrequency o) |
| Modifier and Type | Method and Description |
|---|---|
Collection<TermFrequency> |
TermFrequencyCounter.all()
所有词汇的频次
|
Iterator<TermFrequency> |
TermFrequencyCounter.iterator() |
Collection<TermFrequency> |
TermFrequencyCounter.top(int N)
取前N个高频词
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
TermFrequencyCounter.add(TermFrequency termFrequency) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
TermFrequencyCounter.addAll(Collection<? extends TermFrequency> c) |
Copyright © 2014–2021 码农场. All rights reserved.