INDArray function ( String arg0 ) { int loc0 = vocab ( ) . indexOf ( arg0 ) ; if ( loc0 < 0 ) return null ; INDArray loc1 = lookupTable ( ) . vector ( arg0 ) ; return loc1 . div ( Nd4j . getBlasWrapper ( ) . nrm2 ( loc1 ) ) ; }
returns the word vector divided by the norm2 of the array concode_field_sep List<String> stopWords concode_elem_sep long seed concode_elem_sep boolean resetModel concode_elem_sep int window concode_elem_sep boolean initDone concode_elem_sep boolean useUnknown concode_elem_sep ModelUtils<T> modelUtils concode_elem_sep VocabCache<T> vocab concode_elem_sep double negative concode_elem_sep double minLearningRate concode_elem_sep AtomicDouble learningRate concode_elem_sep int[] variableWindows concode_elem_sep int workers concode_elem_sep String DEFAULT_UNK concode_elem_sep String UNK concode_elem_sep int layerSize concode_elem_sep int numEpochs concode_elem_sep WeightLookupTable<T> lookupTable concode_elem_sep double sampling concode_elem_sep int learningRateDecayWords concode_elem_sep boolean trainElementsVectors concode_elem_sep int minWordFrequency concode_elem_sep boolean useAdeGrad concode_elem_sep boolean trainSequenceVectors concode_elem_sep int numIterations concode_elem_sep int batchSize concode_field_sep List<String> similarWordsInVocabTo concode_elem_sep double[] getWordVector concode_elem_sep Collection<String> wordsNearestSum concode_elem_sep Collection<String> wordsNearestSum concode_elem_sep Collection<String> wordsNearestSum concode_elem_sep Map<String,Double> accuracy concode_elem_sep void update concode_elem_sep void update concode_elem_sep INDArray getWordVectorMatrix concode_elem_sep void setLookupTable concode_elem_sep boolean hasWord concode_elem_sep Collection<String> wordsNearest concode_elem_sep Collection<String> wordsNearest concode_elem_sep Collection<String> wordsNearest concode_elem_sep double similarity concode_elem_sep WeightLookupTable lookupTable concode_elem_sep INDArray getWordVectors concode_elem_sep void setVocab concode_elem_sep VocabCache<T> vocab concode_elem_sep void setModelUtils concode_elem_sep int indexOf concode_elem_sep INDArray getWordVectorsMean