Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-2896 Improve support for capabilities
  3. UIMA-2552

Support for JCas classes in @TypeCapability annotation

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Technical task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • uimaFIT
    • None

    Description

      The current @TypeCapability annotation uses Strings for type names:

      @TypeCapability(
        inputs = { 
          "org.cleartk.token.type.Sentence", 
          "org.cleartk.token.type.Token:pos", 
          "org.cleartk.token.type.Token:lemma" },
      

      It would be nice if JCas classes could be used directly, for example like this:

      @TypeCapability(
        inputTypes = { 
          @Type(Sentence.class),
          @Type(value=Token.class, features={"pos", "lemma"})})
      

      It would also be nice if features could be directly references (cf. UIMA-2147):

      @TypeCapability(
        inputTypes = { 
          @Type(Sentence.class),
          @Type(value=Token.class, features={Token.FEAT_POS, Token.FEAT_LEMMA})})
      

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            rec Richard Eckart de Castilho

            Dates

              Created:
              Updated:

              Slack

                Issue deployment