uimafit JCasIterable update question

2 views
Skip to first unread message

Miller, Timothy

unread,
Sep 5, 2014, 2:58:18 PM9/5/14
to cleartk-d...@googlegroups.com
So uimafit 2.0 has updated the JCasIterable constructor to only take
(CollectionReader|AnalysisEngine)Description objects and not
CollectionReaders or AnalysisEngines directly. In cleartk we have the
Evaluation_ImplBase class whose abstract methods (train,test) take a
CollectionReader. Now a typical thing in our experiments in cTAKES was
to build an aggregate pipeline in train/test and iterate over documents
using JCasIterable with the CollectionReader and the pipeline. So is
there a way to get from a CollectionReader object to its
CollectionReaderDescription object so I can adapt this code which uses a
JCasIterable? Or is there a new/different way to iterate through jcas
using the CollectionReader object? (The new
SimplePipeline.iteratePileline() method looks useful but also only takes
Description objects.)

Thanks


--
Tim Miller
Instructor
Boston Children's Hospital and Harvard Medical School
timothy...@childrens.harvard.edu
617-919-1223

Steven Bethard

unread,
Sep 6, 2014, 8:45:53 PM9/6/14
to cleartk-d...@googlegroups.com
It used to be that train and test needed to take a CollectionReader to
make things like cross validation work out right. I don't know if
that's still true. If not, we should consider switching it to a
CollectionReaderDescription.

In the meantime though, just use a JCasIterator instead of
JCasIterable. The former does take CollectionReader and AnalysisEngine
objects.

Steve
> --
> You received this message because you are subscribed to the Google Groups "cleartk-developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to cleartk-develop...@googlegroups.com.
> To post to this group, send email to cleartk-d...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cleartk-developers.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages