code: public INDArray convert(String text) {
          Tokenizer tokenizer = tokenizerFactory.create(text);
          List<String> tokens = tokenizer.getTokens();
          INDArray create = Nd4j.create(1,wordIndexMap.size());
          Counter<String> tokenizedCounter = new Counter<>();
  
          for(int i = 0; i < tokens.size(); i++) {
              tokenizedCounter.incrementCount(tokens.get(i),1.0);
          }
  
          for(int i = 0; i < tokens.size(); i++) {
              if(wordIndexMap.containsKey(tokens.get(i))) {
                  int idx = wordIndexMap.get(tokens.get(i));
                  int count = (int) tokenizedCounter.getCount(tokens.get(i));
                  double weight = tfidfWord(tokens.get(i),count,tokens.size());
                  create.putScalar(idx,weight);
              }
          }
  
          return create;
      }
docs: Convert the given text
  in to an {@link INDArray}
  using the {@link TokenizerFactory}
  specified in the constructor.
  @param text the text to transform
  @return the created {@link INDArray}
  based on the {@link #wordIndexMap} for the column indices
  of the word.