diff --git a/pom.xml b/pom.xml
index 71bb2d9..0113500 100755
--- a/pom.xml
+++ b/pom.xml
@@ -9,7 +9,7 @@
org.texttechnologylab
textimager-uima-agreement
- 1.2.1
+ 1.2.2
UTF-8
diff --git a/src/main/java/org/hucompute/textimager/uima/agreement/engine/relational/RelationAnnotationAgreement.java b/src/main/java/org/hucompute/textimager/uima/agreement/engine/relational/RelationAnnotationAgreement.java
index b68d2f8..d42e4c5 100644
--- a/src/main/java/org/hucompute/textimager/uima/agreement/engine/relational/RelationAnnotationAgreement.java
+++ b/src/main/java/org/hucompute/textimager/uima/agreement/engine/relational/RelationAnnotationAgreement.java
@@ -71,6 +71,13 @@ public class RelationAnnotationAgreement extends AbstractIAAEngine {
public void initialize(UimaContext context) throws ResourceInitializationException {
annotationClasses = ImmutableSet.of(Entity.class, Event.class, Signal.class);
super.initialize(context);
+ switch (pMultiCasHandling) {
+ case COMBINED:
+ case BOTH:
+ logger.warn(String.format("RelationAnnotationAgreement.PARAM_MULTI_CAS_HANDLING=%s is not implemented, " +
+ "defaulting to SEPARATE.", pMultiCasHandling));
+ break;
+ }
}
@Override
@@ -189,7 +196,9 @@ public void process(JCas jCas) throws AnalysisEngineProcessException {
switch (pMultiCasHandling) {
case SEPARATE:
+ case COMBINED:
case BOTH:
+ default:
handleSeparate(
jCas,
predicateIdentificationStudy,
@@ -209,6 +218,15 @@ public void process(JCas jCas) throws AnalysisEngineProcessException {
}
}
+ @Nonnull
+ protected JCas initializeIaaView(JCas jCas) {
+ JCas viewIAA = JCasUtil.getView(jCas, "IAA", true);
+ if (viewIAA.getDocumentText() == null)
+ viewIAA.setDocumentText(jCas.getDocumentText());
+ viewIAA.removeAllIncludingSubtypes(AgreementValue.type);
+ return viewIAA;
+ }
+
private void handleSeparate(
JCas jCas,
CodingAnnotationStudy predicateIdentificationStudy,