code: public String classify(final String[] document) {
          double[] outcomes = docClassifier.classifyProb(document);
          String category = docClassifier.getBestLabel(outcomes);
          return category;
      }
docs: Classifies the given text, provided in separate tokens.
  @param document the tokens of text to classify
  @return the best label found