uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roberto Franchini <ro.franch...@gmail.com>
Subject Re: Implementing a Map as a custom feature for annotation
Date Sat, 05 Dec 2009 12:46:24 GMT
On Sat, Dec 5, 2009 at 1:55 AM, Anton Shuster <brainiac86@gmail.com> wrote:
> Hello all,
>
> I tried my best to search for an answer to this topic but came up
> short. I'm creating an Annotation type and I want to give it a feature
> that is a Map (a HashMap or any other implementation).
>
> I looked through the documentation, but there is no information on
> creating your own type such as this. All the documentation seems to
> talk about is creating features which inherit the built-in types or
> which inherit other features defined this way.
>
> Please let me know what's the right way to go about this.
>
> One usage scenario would be for annotating HTML tags. For example, an
> HTML tag annotation could contain a label String and an attributes
> Map. There are other scenarios as well, but this one is the most
> obvious.
>

Take a look ad the TikaAnnotator and the FsVariables in the sandbox.
In the first one you can find code and type sytem useful  for
annotating markup tags. In the latter show a way to implement maps
using annotations.
R.F.
-- 
Roberto Franchini
http://www.celi.it
http://www.blogmeter.it
http://www.memesphere.it
Tel +39.011.562.71.15
jabber:ro.franchini@gmail.com skype:ro.franchini

Mime
View raw message