@Override public void addAlignments(JCas input) throws EDAException { // Here, just one aligner... (same lemma linker) try { aligner.annotate(input); } catch (PairAnnotatorComponentException pe) { throw new EDAException("Underlying aligner raised an exception", pe); } }
protected DecisionLabelWithConfidence classifyEntailment(Vector<FeatureValue> fValues) throws EDAException { DecisionLabelWithConfidence dl = null; try { dl = classifier.classifyInstance(fValues); } catch (ClassifierException ce) { throw new EDAException("underlying classifier throw exception", ce); } return dl; }
@Override public void addAlignments(JCas input) throws EDAException { try { identicalLemmaLinker.annotate(input); paraphraseLinker.annotate(input); } catch (PairAnnotatorComponentException pe) { throw new EDAException("Underlying aligner raised an exception", pe); } }
public void initialize(File classifierModelFile) throws EDAException { try { classifier.loadClassifierModel(classifierModelFile); } catch (ClassifierException ce) { throw new EDAException("Loading classifier model and/or parameter failed: ", ce); } }
@Override public void addAlignments(JCas input) throws EDAException { try { identicalLemmaLinker.annotate(input); } catch (PairAnnotatorComponentException pe) { throw new EDAException("Underlying aligner raised an exception", pe); } }
protected DecisionLabelWithConfidence classifyEntailment(Vector<FeatureValue> fValues) throws EDAException { DecisionLabelWithConfidence dl = null; try { dl = classifier.classifyInstance(fValues); } catch (ClassifierException ce) { throw new EDAException("underlying classifier throw exception", ce); } return dl; }
@Override public void addAlignments(JCas input) throws EDAException { try { identicalLemmaLinker.annotate(input); meteorParaphraseLinker.annotate(input); // derivBaseLinker.annotate(input); // distSimLinker.annotate(input); } catch (PairAnnotatorComponentException pe) { throw new EDAException("Underlying aligner raised an exception", pe); } }
/** * Optional methods (steps) that can be overridden. --- but these * methods provide default functionalities. You can extend if you want. * But default implementations would also work as well. */ protected EDAClassifierAbstraction prepareClassifier() throws EDAException { try { return new EDABinaryClassifierFromWeka(); } catch (ClassifierException ce) { throw new EDAException("Preparing an instance of Classifier for EDA failed: underlying Classifier raised an exception: ", ce); } }
@Override public void addAlignments(JCas input) throws EDAException { try { identicalLemmaLinker.annotate(input); // slightly better result without using paraphrase linker, but... paraphraseLinker.annotate(input); italianWordNetLinker.annotate(input); } catch (PairAnnotatorComponentException pe) { throw new EDAException("Underlying aligner raised an exception", pe); } }
/** * Optional methods (steps) that can be overridden. --- but these * methods provide default functionalities. You can extend if you want. * But default implementations would also work as well. */ protected EDAClassifierAbstraction prepareClassifier() throws EDAException { try { return new EDABinaryClassifierFromWeka(); } catch (ClassifierException ce) { throw new EDAException("Preparing an instance of Classifier for EDA failed: underlying Classifier raised an exception: ", ce); } }
@Override public void addAlignments(JCas input) throws EDAException { // Here, just one aligner... (same lemma linker) try { aligner1.annotate(input); aligner2.annotate(input); // aligner3.annotate(input); // WordNet. Really slow in its current form. (several hours) aligner4.annotate(input); } catch (PairAnnotatorComponentException pe) { throw new EDAException("Underlying aligner raised an exception", pe); } }
@Override public void addAlignments(JCas input) throws EDAException { try { identicalLemmaLinker.annotate(input); meteorParaphraseLinker.annotate(input); // derivBaseLinker.annotate(input); distSimLinker.annotate(input); } catch (PairAnnotatorComponentException pe) { throw new EDAException("Underlying aligner raised an exception", pe); } }
@Override public void addAlignments(JCas input) throws EDAException { try { identicalLemmaLinker.annotate(input); meteorParaphraseLinker.annotate(input); derivBaseLinker.annotate(input); // distSimLinker.annotate(input); } catch (PairAnnotatorComponentException pe) { throw new EDAException("Underlying aligner raised an exception", pe); } }
@Override public void addAlignments(JCas input) throws EDAException { try { identicalLemmaLinker.annotate(input); meteorParaphraseLinker.annotate(input); derivBaseLinker.annotate(input); distSimLinker.annotate(input); } catch (PairAnnotatorComponentException pe) { throw new EDAException("Underlying aligner raised an exception", pe); } }
@Override public void addAlignments(JCas input) throws EDAException { try { identicalLemmaLinker.annotate(input); // meteorParaphraseLinker.annotate(input); derivBaseLinker.annotate(input); // distSimLinker.annotate(input); // germaNetLinker.annotate(input); } catch (PairAnnotatorComponentException pe) { throw new EDAException("Underlying aligner raised an exception", pe); } }
@Override public void addAlignments(JCas input) throws EDAException { try { identicalLemmaLinker.annotate(input); // meteorParaphraseLinker.annotate(input); // derivBaseLinker.annotate(input); // distSimLinker.annotate(input); germaNetLinker.annotate(input); } catch (PairAnnotatorComponentException pe) { throw new EDAException("Underlying aligner raised an exception", pe); } }
@Override public void addAlignments(JCas input) throws EDAException { try { identicalLemmaLinker.annotate(input); // meteorParaphraseLinker.annotate(input); // derivBaseLinker.annotate(input); // distSimLinker.annotate(input); // germaNetLinker.annotate(input); } catch (PairAnnotatorComponentException pe) { throw new EDAException("Underlying aligner raised an exception", pe); } }
@Override public void addAlignments(JCas input) throws EDAException { // Here, just one aligner... (same lemma linker) try { aligner1.annotate(input); aligner2.annotate(input); aligner3.annotate(input); // WordNet. rather slow. aligner4.annotate(input); } catch (PairAnnotatorComponentException pe) { throw new EDAException("Underlying aligner raised an exception", pe); } }
@Override public void addAlignments(JCas input) throws EDAException { // Here, just one aligner... (same lemma linker) try { aligner1.annotate(input); aligner2.annotate(input); // aligner3.annotate(input); // WordNet. Really slow in its current form. (several hours) // aligner4.annotate(input); // not to be used by TL. (due to need of external path) } catch (PairAnnotatorComponentException pe) { throw new EDAException("Underlying aligner raised an exception", pe); } }
@Override public void addAlignments(JCas input) throws EDAException { // Here, just one aligner... (same lemma linker) try { aligner1.annotate(input); aligner2.annotate(input); // aligner3.annotate(input); // WordNet. Really slow in its current form. (several hours) // aligner4.annotate(input); } catch (PairAnnotatorComponentException pe) { throw new EDAException("Underlying aligner raised an exception", pe); } }