Re: api changes in v2

2006-11-21 Thread Adam Lally

On 11/21/06, Marshall Schor <[EMAIL PROTECTED]> wrote:

The process method in v1 takes 2 args.  in V2 it takes just one arg -
the result specification arg is now available using
getResultSpecification() assuming someone has called the
setResultSpecification() and the annotator impl has saved this in a
local variable.  Is this correct?



Yes, correct.  The idea is that the annotator gets notified when the
result spec changes.  The old way of doing things was inefficient
because the annotator code had to check on every process call to see
if the ResultSpec had changed, even though in common use cases it
would never change throughout the annotator's lifetime.

-Adam


Re: api changes in v2

2006-11-21 Thread Marshall Schor

Web page is here: http://cwiki.apache.org/UIMA/v2vsv1.html

Please correct/augment/improve :-)

Marshall Schor wrote:
I'll start a web page on the wiki to collect documentation re: changes 
in v2.

-Marshall


api changes in v2

2006-11-21 Thread Marshall Schor
The process method in v1 takes 2 args.  in V2 it takes just one arg - 
the result specification arg is now available using 
getResultSpecification() assuming someone has called the 
setResultSpecification() and the annotator impl has saved this in a 
local variable.  Is this correct?


I'll start a web page on the wiki to collect documentation re: changes 
in v2.


-Marshall