Skip to content
This repository was archived by the owner on Feb 21, 2025. It is now read-only.

Commit 47a57b5

Browse files
committed
Add error information relating to #82
1 parent e4dc42d commit 47a57b5

File tree

1 file changed

+9
-2
lines changed
  • baleen-odin/src/main/java/uk/gov/dstl/baleen/annotators/language

1 file changed

+9
-2
lines changed

baleen-odin/src/main/java/uk/gov/dstl/baleen/annotators/language/OdinParser.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,15 @@ public void initialize(UimaContext context) throws ResourceInitializationExcepti
3636
@Override
3737
public void doProcess(JCas jCas) throws AnalysisEngineProcessException {
3838

39-
Document document = processor.annotate(jCas.getDocumentText(), false);
40-
39+
Document document;
40+
try {
41+
document = processor.annotate(jCas.getDocumentText(), false);
42+
} catch (Exception e) {
43+
getMonitor()
44+
.error(
45+
"OdinParser has a known bug if the Baleen JAR path contains spaces. See https://github.com/dstl/baleen/issues/82 for further details");
46+
throw e;
47+
}
4148
DocumentConverter converter = new DocumentConverter(jCas, document);
4249
converter.convert();
4350
}

0 commit comments

Comments
 (0)