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>.