mkabbasi / cleartk

Automatically exported from code.google.com/p/cleartk
0 stars 0 forks source link

XmiCasDeserializerAE to use with UriCollectionReader #397

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In the past I have used the XReader collection reader which extends 
FilesCollectionReader.  I don't remember if we have deprecated 
FilesCollectionReader or not (we probably should!)  Since XReader is a 
collection reader I don't really like it because I much prefer the way 
UriCollectionReader works.  However, I still like reading and writing XMI 
files.  So, I think we should provide a convenience AE that works closely with 
UriCollectionReader.  The relevant lines of code that would go into the process 
method are:

URI uri = ViewUriUtil.getURI(jCas);
InputStream is = uri.toURL().openStream();
XmiCasDeserializer.deserialize(is, jCas.getCas());

This way I don't have to have it in my own library.  I'm not sure what the name 
of it should be.  XmiCasDeserializerAE seems kind of long winded.  Perhaps just 
XmiDeserializerAE.  

Original issue reported on code.google.com by philip.o...@oracle.com on 30 Dec 2013 at 5:18

GoogleCodeExporter commented 8 years ago
This already exists in ClearTK.  I can't remember the name of the top of my 
head but it is provided in UriCollectionReader.

Original comment by phi...@ogren.info on 21 Jan 2014 at 3:33