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

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

JCasFactory.createText() appeared most appropriate in the end.

> More convenient way to create (J)Cas using text and language
> ------------------------------------------------------------
>
>                 Key: UIMA-3583
>                 URL: https://issues.apache.org/jira/browse/UIMA-3583
>             Project: UIMA
>          Issue Type: Improvement
>          Components: uimaFIT
>            Reporter: Richard Eckart de Castilho
>            Priority: Minor
>             Fix For: 2.2.0uimaFIT
>
>
> It would be nice to have a method to create a JCas using text and language:
> {noformat}
> JCasFactory.createJCasWithText("en", "This is a test.");
> {noformat}
> It could also be considered having such a method in JCasUtil (and CasUtil) to 
> avoid an extra import of JCasFactory, maybe under a more concise name, e.g 
> {noformat}
> JCasUtil.createText("en", "this is a test");
> CasUtil.createText("en", "this is a test");
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to