dkpro / dkpro-core

Collection of software components for natural language processing (NLP) based on the Apache UIMA framework.
https://dkpro.github.io/dkpro-core
Other
195 stars 67 forks source link

How to read a XMI doc with a typesystem #1519

Closed monWork closed 2 years ago

monWork commented 2 years ago

I am trying to read a xmi doc and convert it into conll doc and i am getting error since the xmi has a custom typesystem.

createReaderDescription(XmiReader.class,
                        XmiReader.PARAM_SOURCE_LOCATION, "00034-49911110997.xmi",
                        XmiReader.PARAM_TYPE_SYSTEM_FILE, "entity_typesystem.xml",
                        XmiReader.PARAM_LANGUAGE, "en"),
                createEngineDescription(Conll2006Writer.class,
                        Conll2006Writer.PARAM_TARGET_LOCATION, "."));

PARAM_TYPE_SYSTEM_FILE is not an attribute of Xmireader class so how do i specify my custom typesystem while reading the xmi doc

reckart commented 2 years ago

I can see that PARAM_TYPE_SYSTEM_FILE is declared in the XmiReader class in DKPro Core 2.2.0 - which version are you using?

monWork commented 2 years ago

https://dkpro.github.io/dkpro-core/pages/java-intro/ i was following this, i am fairly new to dkpro. Is there any latest example i can reference

monWork commented 2 years ago

I believe the documentation is pretty old but i tried to update the version to 1.10 still no success.

monWork commented 2 years ago

I think i have figured it out. THanks