On 14-10-23 02:10 AM, Richard Eckart de Castilho wrote:
On 23.10.2014, at 00:39, Piyush Paliwal <[email protected]> wrote:
As an example, I wish to import the following types from TypeSystem.xml
descriptor which also resides in same folder as script (both files now in
Java project).
//import the additional annotations types and alias in short name
IMPORT de.tudarmstadt.ukp.dkpro.core.api.lexmorph.type.pos.NN FROM
uima.ruta.example.TypeSystem AS _NN;
IMPORT de.tudarmstadt.ukp.dkpro.core.api.syntax.type.constituent.PP FROM
uima.ruta.example.TypeSystem AS _PP;
I do not know how the IMPORT (type) AS (alias) is implemented. If the alias
is set up at execution time and not at CAS initialization time, it should
work.
Alexandre?
IMPORT instructions and aliases are resolved at the same time as
TYPESYSTEM instructions, when the first CAS is processed.
Best,
Alexandre