dear all
I have Unicode document I want to process.
Following the tutorial at
this<http://www.ibm.com/developerworks/webservices/tutorials/ws-uima/>,
the code stucks at the last line.
File taeDescriptor = new
File("desc\\DateAnnotatorAEDescriptor.xml");
File inputFile = new File("data\\document1.txt");
XMLInputSource in = new XMLInputSource(taeDescriptor);
ResourceSpecifier specifier =
UIMAFramework.getXMLParser().parseResourceSpecifier(in);
AnalysisEngine tae = UIMAFramework.produceAnalysisEngine(specifier);
CAS tcas = tae.newCAS();
FileInputStream fis = new FileInputStream(inputFile);
byte[] contents = new byte[(int) inputFile.length()];
fis.read(contents);
fis.close();
String document = new String(contents);
tcas.setDocumentText(document);
*tae.process(tcas);*
thank you.