You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by Marshall Schor <ms...@schor.com> on 2011/04/08 12:23:15 UTC
Annotation Editor - not seeing annotations?
running uimaj-examples/src/main/descriptors/tutorial/ex1/RoomNumberAnnotator.xml
using the launcher produces an "SeminarChallengesInSpeechRecognition.xmi" output
file. In that file is one room number annotation - you can see it if you open
the .xmi file in a plain text editor - scroll to near to the end.
If you open that .xmi file using the Annotation Editor, it shows the text, but
shows no annotations. Is this something I'm doing wrong, or a bug?
-Marshall
Re: Annotation Editor - not seeing annotations?
Posted by Jörn Kottmann <ko...@gmail.com>.
On 4/8/11 1:46 PM, Marshall Schor wrote:
>
> On 4/8/2011 7:05 AM, Jörn Kottmann wrote:
>> On 4/8/11 12:41 PM, Marshall Schor wrote:
>>> I was running with the official release 2.3.1 version installed from the
>>> uima/eclipse-update-site.
>>>
>>> Is that one broken? -M
>> No, it should not. In order to see annotations you need
>> either to switch the editor mode or mark them in
>> the "Shown Annotations" context menu.
>>
>> And do you use a Cas Editor project?
> no - was running in the uimaj-examples project.
Ok, strange, will try to reproduce it. Would you mind to send me the
type system and cas file ?
Jörn
Re: Annotation Editor - not seeing annotations?
Posted by Marshall Schor <ms...@schor.com>.
On 4/8/2011 7:05 AM, Jörn Kottmann wrote:
> On 4/8/11 12:41 PM, Marshall Schor wrote:
>> I was running with the official release 2.3.1 version installed from the
>> uima/eclipse-update-site.
>>
>> Is that one broken? -M
>
> No, it should not. In order to see annotations you need
> either to switch the editor mode or mark them in
> the "Shown Annotations" context menu.
>
> And do you use a Cas Editor project?
no - was running in the uimaj-examples project.
>
> Jörn
>
>
Re: Annotation Editor - not seeing annotations?
Posted by Jörn Kottmann <ko...@gmail.com>.
On 4/8/11 2:02 PM, Marshall Schor wrote:
> ok, here's my mistakes, and some questions.
>
> 1) I didn't read the manual :-) (of course, most users won't, either)
>
> 2) I looked at all of the menu picks across the top, especially under "Edit",
> but didn't find any way to switch which annotation is being shown. (I didn't
> think to right click in the editor window).
>
I believe we should switch to the Cas Editor perspective when the
Annotation Editor
is opened, then all the other views will be visible. There is one view
which shows
the annotation types, and has check boxes to show/hide the annotations
across the
editor. Did you notice the "Annotation Styles" view?
> 3) I speed-read the first part of the manual, and discovered I was supposed to
> right click in the window and switch the annotation that was being shown.
>
> 4) I expected that picking a type in that window would show all annotations of
> that type, including subtypes - but it excludes the subtype, it seems. So for
> the type "Annotation" (of which Room Number is a subtype - nothing is shown.
>
No it does not, do you think we should change that? Then a user might
see more then
he wants to see.
> 5) I wonder about the lack of namespaces in the pick list. This would make it
> difficult if there were multiple types, in different namespaces, to pick the one
> you might want.
Yes, in this case it might not be clear to the user. Sounds like we
should change it?
> 6) The menu identifier "Mode" didn't suggest to me that this was where to select
> which annotation(s) were going to be shown.
It sets the mode, you can see additional annotations with the "Shown
Annotations" menu.
The mode type can be quicker edited than other types.
> 7) The overall editor name that appears when you go to a file in the package
> explorer and right click and do "Open with" and there you see "Annotation
> Editor" - when I first saw this I wondered if it was the CAS Editor, or maybe
> some other plugin that had been installed, that was providing a way to look at
> Java @annotations ... Maybe a better name is "UIMA XMI Editor" if it edits only
> xmi - style CASes, or "UIMA CAS Editor" if it edits multiple kinds.
+1, for using a better name. I think it should also reflect the fact
that the Annotation Editor
can only edit text sofas.
> 8) Is there a way to view more than one type of annotation at a time?
Yes by marking them in the Shown Annotations menu or in the Annotations
Style view.
> 9) Is there a way to view feature structures that are not subtypes of
> "Annotation" (that is, have no references back into the text)?
There is a view for that purpose, the Feature Structure View. There you
can select
the FS type and it then lists all FSes of that type. I guess we should
add Index Repository support.
Jörn
Re: Annotation Editor - not seeing annotations?
Posted by Marshall Schor <ms...@schor.com>.
ok, here's my mistakes, and some questions.
1) I didn't read the manual :-) (of course, most users won't, either)
2) I looked at all of the menu picks across the top, especially under "Edit",
but didn't find any way to switch which annotation is being shown. (I didn't
think to right click in the editor window).
3) I speed-read the first part of the manual, and discovered I was supposed to
right click in the window and switch the annotation that was being shown.
4) I expected that picking a type in that window would show all annotations of
that type, including subtypes - but it excludes the subtype, it seems. So for
the type "Annotation" (of which Room Number is a subtype - nothing is shown.
5) I wonder about the lack of namespaces in the pick list. This would make it
difficult if there were multiple types, in different namespaces, to pick the one
you might want.
6) The menu identifier "Mode" didn't suggest to me that this was where to select
which annotation(s) were going to be shown.
7) The overall editor name that appears when you go to a file in the package
explorer and right click and do "Open with" and there you see "Annotation
Editor" - when I first saw this I wondered if it was the CAS Editor, or maybe
some other plugin that had been installed, that was providing a way to look at
Java @annotations ... Maybe a better name is "UIMA XMI Editor" if it edits only
xmi - style CASes, or "UIMA CAS Editor" if it edits multiple kinds.
8) Is there a way to view more than one type of annotation at a time?
9) Is there a way to view feature structures that are not subtypes of
"Annotation" (that is, have no references back into the text)?
-Marshall
On 4/8/2011 7:05 AM, Jörn Kottmann wrote:
> On 4/8/11 12:41 PM, Marshall Schor wrote:
>> I was running with the official release 2.3.1 version installed from the
>> uima/eclipse-update-site.
>>
>> Is that one broken? -M
>
> No, it should not. In order to see annotations you need
> either to switch the editor mode or mark them in
> the "Shown Annotations" context menu.
>
> And do you use a Cas Editor project?
>
> Jörn
>
>
Re: Annotation Editor - not seeing annotations?
Posted by Jörn Kottmann <ko...@gmail.com>.
On 4/8/11 12:41 PM, Marshall Schor wrote:
> I was running with the official release 2.3.1 version installed from the
> uima/eclipse-update-site.
>
> Is that one broken? -M
No, it should not. In order to see annotations you need
either to switch the editor mode or mark them in
the "Shown Annotations" context menu.
And do you use a Cas Editor project?
Jörn
Re: Annotation Editor - not seeing annotations?
Posted by Marshall Schor <ms...@schor.com>.
I was running with the official release 2.3.1 version installed from the
uima/eclipse-update-site.
Is that one broken? -M
On 4/8/2011 6:29 AM, Jörn Kottmann wrote:
> On 4/8/11 12:23 PM, Marshall Schor wrote:
>> running uimaj-examples/src/main/descriptors/tutorial/ex1/RoomNumberAnnotator.xml
>> using the launcher produces an "SeminarChallengesInSpeechRecognition.xmi" output
>> file. In that file is one room number annotation - you can see it if you open
>> the .xmi file in a plain text editor - scroll to near to the end.
>>
>> If you open that .xmi file using the Annotation Editor, it shows the text, but
>> shows no annotations. Is this something I'm doing wrong, or a bug?
>
> I introduced such a bug while doing the multi view support, but it is already
> fixed,
> do you run on the latest head version?
>
> Jörn
>
>
>
Re: Annotation Editor - not seeing annotations?
Posted by Jörn Kottmann <ko...@gmail.com>.
On 4/8/11 12:23 PM, Marshall Schor wrote:
> running uimaj-examples/src/main/descriptors/tutorial/ex1/RoomNumberAnnotator.xml
> using the launcher produces an "SeminarChallengesInSpeechRecognition.xmi" output
> file. In that file is one room number annotation - you can see it if you open
> the .xmi file in a plain text editor - scroll to near to the end.
>
> If you open that .xmi file using the Annotation Editor, it shows the text, but
> shows no annotations. Is this something I'm doing wrong, or a bug?
I introduced such a bug while doing the multi view support, but it is
already fixed,
do you run on the latest head version?
Jörn