new Class for tagger

16 views
Skip to first unread message

fain...@gmail.com

unread,
Jul 29, 2013, 3:26:00 AM7/29/13
to uimafi...@googlegroups.com
Hi, all!

I want to add and tag new annotation type. Could you give me link to the source where I can read how can I automatically produce Class.xml or Class_Type.java or Class.Java using uimafit through m2eclipse.
Is there any step-by-step instruction for uimafit (not for an "old" uima) or maybe someone can explain me what to do?

I also want to understand, how can I configure my own types.txt file, what I need to do in order to use my own automatic type system not imported from META-INF.maven.org-uimafit.

Thank you in advance.

Richard Eckart de Castilho

unread,
Jul 29, 2013, 3:43:47 AM7/29/13
to uimafi...@googlegroups.com
Am 29.07.2013 um 09:26 schrieb fain...@gmail.com:

> Hi, all!
>
> I want to add and tag new annotation type. Could you give me link to the source where I can read how can I automatically produce Class.xml or Class_Type.java or Class.Java using uimafit through m2eclipse.
>
> Is there any step-by-step instruction for uimafit (not for an "old" uima) or maybe someone can explain me what to do?

uimaFIT uses UIMA type descriptors. So any "old" instructions on how to create new UIMA types are also valid for uimaFIT.

After you have created your "old-style" type descriptor, you probably want to make it detectable by uimaFIT.

First, make sure your descriptor is in your classpath. If you use Maven, it should be somewhere under src/main/resources,
otherwise probably somewhere in src. Say you use Maven, you could create it at src/main/resources/desc/type/MyTypes.xml

The create a folder META-INF/org.uimafit/types.txt also in the classpath. For Maven src/main/resources/META-INF/org.uimafit/types.txt
Open the types.txt and add a line referencing your type descriptor (mind this reference relative to the classpath, so src/main/resources is not a part of it):

classpath*:desc/type/MyTypes.xml

For more info see [1].

> I also want to understand, how can I configure my own types.txt file, what I need to do in order to use my own automatic type system not imported from META-INF.maven.org-uimafit.

You should explain your problem in more detail. Without further details, I can only point you to the instructions as [1] (or the brief summary I gave above).

-- Richard

[1] https://code.google.com/p/uimafit/wiki/TypeDescriptorDetection.

fain...@gmail.com

unread,
Jul 29, 2013, 4:22:49 AM7/29/13
to uimafi...@googlegroups.com, fain...@gmail.com
thank you, Richard!

I was interested, whether there is an opportunity not to create Class.xml or Class_type.java or Class.java manually, but using java like with descriptors for annotators (we use createPrimitiveDescription and don't need to create Annotator.xml manually).

Richard Eckart de Castilho

unread,
Jul 29, 2013, 4:31:10 AM7/29/13
to uimafi...@googlegroups.com, fain...@gmail.com
Am 29.07.2013 um 10:22 schrieb fain...@gmail.com:

> thank you, Richard!
>
> I was interested, whether there is an opportunity not to create Class.xml or Class_type.java or Class.java manually, but using java like with descriptors for annotators (we use createPrimitiveDescription and don't need to create Annotator.xml manually).

Well, there are annotation types and analysis engines. Say you want to create your own annotation type "MyToken", then you'll need an XML type system description which declares this type. It's also convenient to use JCasGen and generate the corresponding MyToken.java and MyToken_Type.java. You could create the type system XML file using the Component Description Editor plugin in Eclipse (part of the UIMA Eclipse plugins). There is a button "JCasGen" in there which creates the *.java and *_type.java files for you - do not create them manually.

For an analysis engine MyAnnotator, you don't need to create an XML description MyAnnotator.xml when you use uimaFIT. You can just use createPrimitiveDescription().

-- Richard
Reply all
Reply to author
Forward
0 new messages