deeplearning4j-scaleout/deeplearning4j-nlp/src/main/java/org/deeplearning4j/models/embeddings/wordvectors/WordVectorsImpl.java
/**
     * Find all words with a similar characters
     * in the vocab
     * @param word the word to compare
     * @param accuracy the accuracy: 0 to 1
     * @return the list of words that are similar in the vocab
     */
Find all words with a similar characters
in the vocab
@param word the word to compare
@param accuracy the accuracy: 0 to 1
@return the list of words that are similar in the vocab
Find all words with a similar characters in the vocab @param word the word to compare @param accuracy the accuracy : 0 to 1 @return the list of words that are similar in the vocab
public List<String> similarWordsInVocabTo(String word,double accuracy) {
        List<String> ret = new ArrayList<>();
        for(String s : vocab.words()) {
            if(MathUtils.stringSimilarity(word, s) >= accuracy)
                ret.add(s);
        }
        return ret;
    }
public List < String > similarWordsInVocabTo ( String word , double accuracy ) { List < String > ret = new ArrayList < > ( ) ; for ( String s : vocab . words ( ) ) { if ( MathUtils . stringSimilarity ( word , s ) >= accuracy ) ret . add ( s ) ; } return ret ; }
Find all words with a similar characters
 in the vocab
 @param word the word to compare
 @param accuracy the accuracy: 0 to 1
 @return the list of words that are similar in the vocab
Find all words with a similar characters in the vocab @param word the word to compare @param accuracy the accuracy : 0 to 1 @return the list of words that are similar in the vocab