uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Klügl (JIRA) <...@uima.apache.org>
Subject [jira] [Comment Edited] (UIMA-3669) Problem with Annotation Declaration, Error parsing XCAS or XMI-CAS from source <unknown> at line 1, column 75407: unknown type: com.uima.RutaTesting.Gather_Testing.C.
Date Fri, 07 Mar 2014 11:41:44 GMT

    [ https://issues.apache.org/jira/browse/UIMA-3669?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13923802#comment-13923802
] 

Peter Klügl edited comment on UIMA-3669 at 3/7/14 11:41 AM:
------------------------------------------------------------

The problem normally occurs when you try to open an xmiCAS file with the CAS Editor and there
are annotation of types in that CAS, which are not covered by the type system that is used
in the CAS Editor.

I assume that you mean manually annotate when you get this error, and not annotate using the
rules, right? Or the annotated file is still open in the CAS Editor, which tries to refresh
due to the changed file.
Please correct me if that is not true.

There are two ways to "solve" this problem:
- Open the xmiCAS with a type system that contains all types including com.uima.RutaTesting.Gather_Testing.EmplRelation.
You can check, which type system was used in the CAS Editor by hovering over the title tab
of the editor (which displays the name of the file). There should be the name and location
of the type system that was applied.
Maybe you want to deactivate the preference: Menu->Window->Preferences->UIMA Cas
Editor->Cas Editor Ide->Use the previously selected type system... Maybe you opened
the file before with a different type system that has less types. There are several ways how
the type system is selected, if the user was not asked to select one herself. Two other options
are:Ruta selects the type system of the last launched script in the same project, or the project
specifies a type system that should be used by default (Project Properties->UIMA Type System)

- Ignore the missing types: The preference page of the CAS Editor has an option to load the
xmi file leniently, ignoring annotations of missing types: Menu->Window->Preferences->UIMA
Cas Editor->Annotation Editor->Load CAS leniently...
This option should only activated with care, because if you modify the file and then store
it again, then the annotations of the missing types are gone for good.


was (Author: pkluegl):
The problem normally occurs when you try to open an xmiCAS file with the CAS Editor and there
are annotation of types in that CAS, which are not covered by the type system that is used
in the CAS Editor.

I assume that you mean manually annotate when you get this error, and not annotate using the
rules, right? Or the annotated file is still open in the CAS Editor, which tries to refresh
due to the changed file.
Please correct me if that is not true.

There are two ways to "solve" this problem:
- Open the xmiCAS with a type system that contains all types including com.uima.RutaTesting.Gather_Testing.EmplRelation.
You can check, which type system was used in the CAS Editor by hovering over the title tab
of the editor (which displays the name of the file). There should be the name and location
of the type system that was applied.
Maybe you want to deactivate the preference: Menu->Window->Preferences->UIMA Cas
Editor->Cas Editor Ide->Use the previously selected type system... Maybe you opened
the file before with a different type system that has less types. There aare several ways
how the type systemis selected, if the user was not asked to select one herself. Two other
option are:Ruta selects the type system of last launched script in the same project. The project
specifies a type system that should be used by default. 
- Ignore the missing types: The preference page of the CAS Editor has an option to load the
xmi file leniently, ignoring annotation of missing types: Menu->Window->Preferences->UIMA
Cas Editor->Annotation Editor->Load CAS leniently...
This option should only activated with care, because if you modify the file and then store
it again, then the annoations of the missing types are gone for good.

> Problem with Annotation Declaration, Error parsing XCAS or XMI-CAS from source <unknown>
at line 1, column 75407: unknown type: com.uima.RutaTesting.Gather_Testing.C.
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: UIMA-3669
>                 URL: https://issues.apache.org/jira/browse/UIMA-3669
>             Project: UIMA
>          Issue Type: Question
>          Components: CasEditor, ruta
>            Reporter: Nick Kolivas
>
> Hello there all,
> I am new to Ruta and trying to find my way around,
> I have created some scripts that do some annotating from csv files and trying to construct
some more complex annotation by combining 2 Annotations to create a new one that has Annotation
Type Features.
> My script:
> PACKAGE com.uima.RutaTesting;
> SCRIPT com.uima.RutaTesting.Disctionary_Annotators;
> SCRIPT com.uima.RutaTesting.SpeedDiscription;
> DECLARE Annotation C (SpeedDiscriptor F1, Target F2);
> Document{->CALL(Disctionary_Annotators)};
> Document{->CALL(SpeedDiscription)};
> SpeedDiscriptor Target {->
> CREATE (C, "F1"=SpeedDiscriptor, "F2"=Target),
> SHIFT(SpeedDiscriptor,1,2)};
> When I try to annotate the text i get the error : Error parsing XCAS or XMI-CAS from
source <unknown> at line 1, column 75407: unknown type: com.uima.RutaTesting.Gather_Testing.EmplRelation.
> I cannot understand why this happens..Any ideas?



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message