If you're not changing anything that determines how the annotation is
indexed you can just set it. e.g. if you have retrieved an object foo with a
feature count, then: foo.setCount(foo.getCount()+1);

>From just before your second reference:
Note

It's OK to change feature values which are not used in determining sort
ordering (or set membership), without removing and re-adding back to the
index.
If your change affects one of the index variables you'll have to remove and
add again to the indexes.

Burn.

On Wed, May 7, 2008 at 1:02 PM, Nicolas Hernandez <
[EMAIL PROTECTED]> wrote:

> Hello,
>
> I am a bit lost. Does someone have an example of some code which update
> feature values of some already existing annotations ? I wonder whether I
> have to add to the index again...
>
> I had a look to these links, even to the code of the regexp annotator
> sandbox, but it remains unclear...
>  *
>
> http://incubator.apache.org/uima/downloads/releaseDocs/2.1.0-incubating/docs/html/tutorials_and_users_guides/tutorials_and_users_guides.html#ugr.tug.cm.using_cm_to_merge_cases
>  *
>
> http://incubator.apache.org/uima/downloads/releaseDocs/2.1.0-incubating/docs/html/references/references.html#ugr.ref.jcas.adding_removing_instances_to_indexes
>
> Thanks in advance for your help
>
> /Nicolas
>
> --
> [EMAIL PROTECTED]
> --
> # Laboratoire LINA-TALN CNRS UMR 6241
> tel. +33 (0)2 51 12 58 55
> # Institut Universitaire de Technologie de Nantes - Département
> Informatique
>
> tel. +33 (0)2 40 30 60 67
>

Reply via email to