[ 
https://issues.apache.org/jira/browse/UIMA-6152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17009071#comment-17009071
 ] 

Richard Eckart de Castilho commented on UIMA-6152:
--------------------------------------------------

In the past, I have made bad experiences with Guava in relation to backwards 
compatibility with itself. If we'd need a string manipulation library, I'd 
suggest going with Apache Commons Text. However, I don't see how such a library 
would come in here. This is not about string manipulation but about changing 
annotation offsets.

> "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
>
> 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)

Reply via email to