Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
It would be nice to have a method to create a JCas using text and language:
JCasFactory.createJCasWithText("en", "This is a test.");
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
JCasUtil.createText("en", "this is a test"); CasUtil.createText("en", "this is a test");