Hi,
UIMA Ruta (originally released as UIMA TextMarker) provides
functionality for modifications in the document (in a new view) and for
transforming the offsets of the annotations when the document is
changed. However, both are not yet linked.
There is a short introduction in modification in the documentation (last
paragraph):
http://uima.apache.org/d/textmarker-current/tools.textmarker.book.html#ugr.tools.tm.overview.examples
Just let me know, if you need more detailed information.
Best,
Peter
Am 20.05.2013 04:21, schrieb GATE User:
1) How do I change the original message based on annotations in UIMA. For
example, lets say I have the string:
201301012345
That contains both the date and time. I want to have an annotator that will
find such things in the text and add a space between them so it becomes:
2030101 2345
What's the easiest way to modify the text in this instance?
Also, let's say I have the sentence:
See Spot run far down Main Street.
and I have an annotator that that finds and labels main street as a street
name. Now I want to make an annotator that, if it finds a street name
annotation, to change that street name into something else, like River Blvd.
So the above sentence would be:
See Spot run far down River Blvd.
What's the easiest way to do this? Will I, afterwards, have to resend the CAS
through the pipeline again or is there an easy way to update all annotations
that would be affected by the change since River Blvd is shorter than Main
Street?
Thanks in advance.