You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ctakes.apache.org by "Kean Kaufmann (Jira)" <ji...@apache.org> on 2021/02/09 21:41:00 UTC

[jira] [Created] (CTAKES-554) NegexAnnotator: checkNegation2 removes first character of every sentence

Kean Kaufmann created CTAKES-554:
------------------------------------

             Summary: NegexAnnotator: checkNegation2 removes first character of every sentence
                 Key: CTAKES-554
                 URL: https://issues.apache.org/jira/browse/CTAKES-554
             Project: cTAKES
          Issue Type: Bug
          Components: ctakes-ytex-uima
            Reporter: Kean Kaufmann


In org.apache.ctakes.ytex.uima.annotators.NegexAnnotator::checkNegation2 (which doesn't appear to be called from anywhere, fortunately):

 

 
{code:java}
		// Remove the extra periods at the beginning
		// and end of the sentence.
		sentence = sentence.substring(0,sentence.trim().lastIndexOf('.'));
		sentence = sentence.replaceFirst(".", "");
{code}
 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)