The Except for the handling of end-of-line characters, the YTEX SentenceAnnotator is identical to the standard the default cTAKES Sentence Annotator with the exception of newline handling. The cTAKES default sentence annotator forces all newlines to be sentence endings. However, in many documents, newlines are not sentence endings. The YTEX SentenceAnnotator does not break sentences on newlines.
To use the YTEX SentenceAnnotator, use the desc\ctakes-ytex-uima\desc\analysis_engine\SentenceDetectorAnnotator.xml
, or (for UIMAFit) org.apache.ctakes.ytex.uima.annotators.SentenceDetector
.