WordsToSentencesAnnotator function ( boolean arg0 , String ... arg1 ) { WordToSentenceProcessor < CoreLabel > loc0 = new WordToSentenceProcessor < > ( ArrayUtils . asImmutableSet ( arg1 ) ) ; return new WordsToSentencesAnnotator ( arg0 , true , loc0 ) ; }
return a wordstosentencesannotator that splits on newlines only , which are then deleted . this constructor counts the lines by putting in empty token lists for empty lines . it tells the underlying splitter to return empty lists of tokens and then treats those empty lists as empty lines . we do n't actually include empty sentences in the annotation , though . but they are used in numbering the sentence . only this constructor leads to empty sentences . concode_field_sep boolean countLineNumbers concode_elem_sep WordToSentenceProcessor<CoreLabel> wts concode_elem_sep boolean VERBOSE concode_field_sep Set<Class<? extends CoreAnnotation>> requirementsSatisfied concode_elem_sep void annotate concode_elem_sep WordsToSentencesAnnotator nonSplitter concode_elem_sep Set<Class<? extends CoreAnnotation>> requires