| Package | Description |
|---|---|
| com.hankcs.hanlp.mining.word |
| Modifier and Type | Method and Description |
|---|---|
static TfIdf.TfType |
TfIdf.TfType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TfIdf.TfType[] |
TfIdf.TfType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static <TERM> Map<TERM,Double> |
TfIdf.tf(Collection<TERM> document,
TfIdf.TfType type)
单文档词频
|
static <TERM> Iterable<Map<TERM,Double>> |
TfIdf.tfs(Iterable<Collection<TERM>> documents,
TfIdf.TfType type)
多文档词频
|
Copyright © 2014–2021 码农场. All rights reserved.