You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@uima.apache.org by Bart Mellebeek <ba...@barcelonamedia.org> on 2010/04/20 18:22:08 UTC
Best way to compare FSIndexes from different CASes on the same Sofa
Hi,
I was wondering about the following question: what is the best way to
compare FSIndexes from different CASes on the same Sofa?
I have two different CASes on the same SofaString: CAS1 was obtained as
the result of running an Annotator; CAS2 was obtained as the result of
manual processing using the CASEditor. Each CAS contains different
FSIndexes. Is it possible to process CAS1, store the FSIndexes I need,
then process CAS2 and compare the indexes or is the only valid way to
merge the CASes and do the comparison on a single CAS?
Thanks,
Bart
Re: Best way to compare FSIndexes from different CASes on the same
Sofa
Posted by Thilo Goetz <tw...@gmx.de>.
On 4/20/2010 18:22, Bart Mellebeek wrote:
> Hi,
>
> I was wondering about the following question: what is the best way to
> compare FSIndexes from different CASes on the same Sofa?
> I have two different CASes on the same SofaString: CAS1 was obtained as
> the result of running an Annotator; CAS2 was obtained as the result of
> manual processing using the CASEditor. Each CAS contains different
> FSIndexes. Is it possible to process CAS1, store the FSIndexes I need,
> then process CAS2 and compare the indexes or is the only valid way to
> merge the CASes and do the comparison on a single CAS?
> Thanks,
>
> Bart
This is something that many people need, and I suspect it's
been implemented many times. However, it's difficult to
create library functions to do this as the requirements are
often subtly different.
Anyway, what I've done and what I've seen other people do
is to write custom code that takes the two CASes and their
respective indexes, iterates over them in parallel and
compares them by whatever criteria are important to you
(the begin/end offsets may be all that's relevant, or there
may be more).
You can store your manually annotated CAS by writing it to
disk in XCAS or XMI format, and reading it back into a CAS
every time you need it.
--Thilo