public class WeightedTokens extends Object
Modifier and Type | Field and Description |
---|---|
List<String> |
tokens |
static int |
WEIGHT_DESCRIPTION |
static int |
WEIGHT_MENU |
static int |
WEIGHT_NAME |
gnu.trove.list.TIntList |
weights |
Constructor and Description |
---|
WeightedTokens() |
Modifier and Type | Method and Description |
---|---|
void |
add(String text,
int weight)
Adds a text to tokenize
|
String |
getToken(int index) |
int |
getWeight(int index) |
int |
size() |
public static final int WEIGHT_NAME
public static final int WEIGHT_MENU
public static final int WEIGHT_DESCRIPTION
public final gnu.trove.list.TIntList weights
Copyright © 2020–2025 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.