public class FlatModelUtils<T extends SequenceElement> extends BasicModelUtils<T>
BasicModelUtils.ArrayComparator, BasicModelUtils.SimilarityComparator, BasicModelUtils.WordSimilarity
CORRECT, EXISTS, lookupTable, normalized, vocabCache, WRONG
Constructor and Description |
---|
FlatModelUtils() |
Modifier and Type | Method and Description |
---|---|
Collection<String> |
wordsNearest(org.nd4j.linalg.api.ndarray.INDArray words,
int top)
This method does full scan against whole vocabulary, building descending list of similar words
|
Collection<String> |
wordsNearest(String label,
int n)
This method does full scan against whole vocabulary, building descending list of similar words
|
accuracy, getLabels, init, similarity, similarWordsInVocabTo, wordsNearest, wordsNearestSum, wordsNearestSum, wordsNearestSum
public Collection<String> wordsNearest(String label, int n)
wordsNearest
in interface ModelUtils<T extends SequenceElement>
wordsNearest
in class BasicModelUtils<T extends SequenceElement>
label
- n
- public Collection<String> wordsNearest(org.nd4j.linalg.api.ndarray.INDArray words, int top)
wordsNearest
in interface ModelUtils<T extends SequenceElement>
wordsNearest
in class BasicModelUtils<T extends SequenceElement>
words
- top
- Copyright © 2017. All rights reserved.