Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-3583

More convenient way to create (J)Cas using text and language

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.0uimaFIT
    • Component/s: uimaFIT
    • Labels:
      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");
      

        Attachments

          Activity

            People

            • Assignee:
              rec Richard Eckart de Castilho
              Reporter:
              rec Richard Eckart de Castilho
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: