code: public Collection<String> predictSeveral(String rawText, int limit) {
          if (tokenizerFactory == null)
              throw new IllegalStateException("TokenizerFactory should be defined, prior to predict() call");
  
          List<String> tokens = tokenizerFactory.create(rawText).getTokens();
          List<VocabWord> document = new ArrayList<>();
          for (String token : tokens) {
              if (vocab.containsWord(token)) {
                  document.add(vocab.wordFor(token));
              }
          }
  
          return predictSeveral(document, limit);
      }
docs: Predict several labels based on the document.
  Computes a similarity wrt the mean of the
  representation of words in the document
  @param rawText raw text of the document
  @return possible labels in descending order