public String classify ( final String [ ] document ) { double [ ] outcomes = docClassifier . classifyProb ( document ) ; String category = docClassifier . getBestLabel ( outcomes ) ; return category ; }
Classifies the given text provided in separate tokens .