public class LabelIndexer extends Object
| Modifier and Type | Field and Description |
|---|---|
com.google.common.collect.BiMap<String,Integer> |
labelIndexer |
| Constructor and Description |
|---|
LabelIndexer(List<org.maochen.nlp.ml.Tuple> trainingData) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Double> |
convertMapKey(Map<Integer,Double> probs) |
int |
getIndex(String label) |
Set<Integer> |
getIndexSet() |
String |
getLabel(int index) |
int |
getLabelSize() |
boolean |
hasLabel(String label) |
void |
putByLabels(List<String> labels) |
Copyright © 2016. All rights reserved.