public INDArray getWordVectorMatrixNormalized ( String word ) { INDArray r = getWordVectorMatrix ( word ) ; if ( r == null ) return null ; return r . div ( Nd4j . getBlasWrapper ( ) . nrm2 ( r ) ) ; }
Returns the word vector divided by the norm2 of the array