Hi, what is the method setSofaDataURI(String uri, String mime) of JCas good for? I thought that one could use it as an alternative to setSofaDataString(). But doing so results in an empty String when calling getDocumentText() in the analysis engine's process() method. What am I missing?
Code snippet: JCas jCas = analysisEngine.newJCas(); final String uri = file.toURI().toString(); // gives something like file:/C:/some/path/to/utf8textfile.txt jCas.setSofaDataURI(uri, "text/plain"); analysisEngine.process(jCas); // causes NullPointerException when using regular expressions on the empty string Thanks, Armin
