Hi Richard,
Thanks a lot. That helped! I replaced the following
function -
AnalysisEngineFactory.createAnalysisEngineFromPath(
"desc/AggregateAnalysisEngine.xml");
Now this produces an AnalysisEngine. How do I convert from AnalysisEngine
to AnalysisEngineDescription. SimplePipeline.runPipeline only takes
AnalysisEngineDescription.
Also I would like to get an annotated XML as an output. How would I do that?
Thanks,
Harshal
On Wed, May 8, 2013 at 5:47 PM, Richard Eckart de Castilho <
[email protected]> wrote:
> Am 08.05.2013 um 13:57 schrieb harshal patni <[email protected]>:
>
> > HI Richard,
> > Eclipse seems to crib about StringReader.PARAM_TEXT and
> > wants me to change the name?
> >
> > Harshal
>
> This is what I used:
>
> public class StringReader extends
> org.apache.uima.fit.component.CasCollectionReader_ImplBase {
> private boolean hasBeenRead = false;
>
> public static final String PARAM_TEXT = "text";
>
> @ConfigurationParameter(name = PARAM_TEXT)
> private String text;
>
> public void getNext(CAS aCAS) throws IOException, CollectionException {
> aCAS.setDocumentText(text);
> hasBeenRead = true;
> }
>
> public boolean hasNext() throws IOException, CollectionException {
> return !hasBeenRead;
> }
>
> public Progress[] getProgress() {
> return null;
> }
> }
--
*Harshal Patni** | *Data Architect | Zynx Health ™
10880 Wilshire Boulevard, Suite 300 | Los Angeles, CA, 90024
Mobile : 937-760-6639| [email protected]
<[email protected]><[email protected]>
<http://www.linkedin.com/in/harshalpatni> |
<http://knoesis.wright.edu/researchers/harshal/>
www.zynxhealth.com <http://www.zynx.com/>
“*Most Interesting Vendor” 2010*
- Healthcare Informatics