IBMStreams / streamsx.nlp

Provide operations for text analysis, like lemmatization and text annotation with Uima Ruta scripts or existing project specific Uima pear files.

Home Page:https://ibmstreams.github.io/streamsx.nlp/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UIMA operators: Be more robust if dataDirectory is not set

markheger opened this issue · comments

If dataDir is not set the runtime throws the following exception:
Exception in thread "Thread-14" java.lang.IllegalStateException
at com.ibm.streams.operator.internal.runtime.api.PE.getDataDirectory(PE.java:211)
at com.ibm.streamsx.nlp.AbstractUimaOperator.initialize(AbstractUimaOperator.java:506)
at com.ibm.streamsx.nlp.RutaText.initialize(RutaText.java:156)
at com.ibm.streams.operator.internal.runtime.api.OperatorAdapter.initialize(OperatorAdapter.java:736)
at com.ibm.streams.operator.internal.jni.JNIBridge.(JNIBridge.java:274)

Operator should use "/tmp" as installation root for PEAR file installation if PE.getDataDirectory() throws an exception.