[
https://issues.apache.org/jira/browse/UIMA-6152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17009204#comment-17009204
]
Richard Eckart de Castilho commented on UIMA-6152:
--------------------------------------------------
I have added a PR for this: https://github.com/apache/uima-uimaj/pull/17
> "trim" method for AnnotationFS
> ------------------------------
>
> Key: UIMA-6152
> URL: https://issues.apache.org/jira/browse/UIMA-6152
> Project: UIMA
> Issue Type: New Feature
> Components: UIMA
> Reporter: Richard Eckart de Castilho
> Priority: Minor
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Usually leading or trailing whitespace is not helpful in text annotations.
> Thus, it would be nice to have a `trim()` convenience method on AnnotationFS
> which increases/decreases begin/end such that leading/trailing whitespace is
> removed from the annotation.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)