Can't define a subclass of NamedEntity in type description XML file

3 views
Skip to first unread message

Alain Désilets

unread,
Nov 18, 2019, 11:56:26 AM11/18/19
to dkpro-core-user
I am trying to define a new class of Annotation which would be a sub-class of NamedEntity.

I follow the instructions on this page, and it works fine. 

However, if I try to define a subclass of the DKPro NamedEntity class:

    <typeDescription>
     
<name>eu.openminted.example.uimafit.NamedEntitySubclass</name>
     
<description/>
     
<supertypeName>de.tudarmstadt.ukp.dkpro.core.api.ner.type.NamedEntity</supertypeName>
   
</typeDescription>

Then the classes for the types do not get generated and I get this error:

Execution default of goal org.apache.uima:jcasgen-maven-plugin:2.9.0:generate failed.

Yet, I have included the dkpro ner dependency in my pom:

<dependency>
    <groupId>org.dkpro.core</groupId>
    <artifactId>dkpro-core-api-ner-asl</artifactId>
    <version>1.11.0</version>
</dependency>

And I have a Main app that creates a NamedEntity without problem. So that class is on the build path.

Is there something special I have to do in order to be able to reference that class inside the type description xml file?

Attached is a Maven project that illustrates the problem.

Thx.




uima-typesystem-example.zip

Torsten Zesch

unread,
Nov 19, 2019, 7:46:56 AM11/19/19
to dkpro-c...@googlegroups.com
Yes, you have to import the type in the Component Descriptor Editor.
I have attached your example with the imported type.

-Torsten



On 18.11.19, 17:56, "dkpro-c...@googlegroups.com on behalf of Alain Désilets" <dkpro-c...@googlegroups.com on behalf of alainde...@gmail.com> wrote:

I am trying to define a new class of Annotation which would be a sub-class of NamedEntity.


I follow the instructions on this page, and it works fine.


However, if I try to define a subclass of the DKPro NamedEntity class:



<typeDescription>
<name>eu.openminted.example.uimafit.NamedEntitySubclass</name>
<description/>
<supertypeName>de.tudarmstadt.ukp.dkpro.core.api.ner.type.NamedEntity</supertypeName>
</typeDescription>




Then the classes for the types do not get generated and I get this error:


Executiondefault of goal org.apache.uima:jcasgen-maven-plugin:2.9.0:generate
failed.



Yet, I have included the dkpro ner dependency in my pom:


<dependency>
<groupId>org.dkpro.core</groupId>
<artifactId>dkpro-core-api-ner-asl</artifactId>
<version>1.11.0</version>
</dependency>




And I have a Main app that creates a NamedEntity without problem. So that class is on the build path.


Is there something special I have to do in order to be able to reference that class inside the type description xml file?


Attached is a Maven project that illustrates the problem.


Thx.







--
You received this message because you are subscribed to the Google Groups "dkpro-core-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
dkpro-core-us...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/dkpro-core-user/852a54ae-95bb-45fe-8b52-e97a3251f96a%40googlegroups.com <https://groups.google.com/d/msgid/dkpro-core-user/852a54ae-95bb-45fe-8b52-e97a3251f96a%40googlegroups.com?utm_medium=email&utm_source=footer>.

typeSystemDescriptor.xml.zip

Alain Désilets

unread,
Dec 4, 2019, 9:43:36 AM12/4/19
to dkpro-core-user
Thx Thorsten, that did the trick.

Alain
Reply all
Reply to author
Forward
0 new messages