Richard Eckart de Castilho created UIMA-2552:
------------------------------------------------
Summary: Support for JCas classes in @TypeCapability annotation
Key: UIMA-2552
URL: https://issues.apache.org/jira/browse/UIMA-2552
Project: UIMA
Issue Type: Improvement
Components: uimafit
Reporter: Richard Eckart de Castilho
The current @TypeCapability annotation uses Strings for type names:
{code}
@TypeCapability(
inputs = {
"org.cleartk.token.type.Sentence",
"org.cleartk.token.type.Token:pos",
"org.cleartk.token.type.Token:lemma" },
{code}
It would be nice if JCas classes could be used directly, for example like this:
{code}
@TypeCapability(
inputTypes = {
@Type(Sentence.class),
@Type(value=Token.class, features={"pos", "lemma"})})
{code}
It would also be nice if features could be directly references (cf. UIMA-2147):
{code}
@TypeCapability(
inputTypes = {
@Type(Sentence.class),
@Type(value=Token.class, features={Token.FEAT_POS, Token.FEAT_LEMMA})})
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira