package com.bbn.kbp.events2014.assessmentDiff.observers;

import com.bbn.bue.common.symbols.Symbol;
import com.bbn.kbp.events2014.Response;
import com.bbn.kbp.events2014.ResponseAssessment;
import com.bbn.kbp.events2014.assessmentDiff.observers.ConfusionMatrixAssessmentPairObserver;

public class AETObserver extends ConfusionMatrixAssessmentPairObserver {

    @Override
    protected boolean filter(Response response, ResponseAssessment left, ResponseAssessment right) {
        return true;
    }

    @Override
    protected Symbol toKey(ResponseAssessment assessment) {
        return Symbol.from(assessment.justificationSupportsEventType().toString());
    }
}

package com.bbn.kbp.events2014.assessmentDiff.observers;

import com.bbn.bue.common.symbols.Symbol;
import com.bbn.kbp.events2014.Response;
import com.bbn.kbp.events2014.ResponseAssessment;
import com.bbn.kbp.events2014.assessmentDiff.observers.ConfusionMatrixAssessmentPairObserver;

public class AETObserver extends ConfusionMatrixAssessmentPairObserver {

    @Override
    protected boolean filter(Response response, ResponseAssessment left, ResponseAssessment right) {
        return left.justificationSupportsEventType().isPresent() && right.justificationSupportsEventType().isPresent();
    }

    @Override
    protected Symbol toKey(ResponseAssessment assessment) {
        return Symbol.from(assessment.justificationSupportsEventType().get().toString());
    }
}

Update AET diff observer for possibility AET is absent
Update AET diff observer for possibility AET is absent
