@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); } }
@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; }
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); } }
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; }
public void initialize(File modelToLoadBaseName) throws EDAException { File classifierModelFile = new File(modelToLoadBaseName.getAbsolutePath() + CLASSIFIER_MODEL_POSTFIX); File paramSerFile = new File(modelToLoadBaseName.getAbsolutePath() + PARAMETER_SER_POSTFIX); try { classifier.loadClassifierModel(classifierModelFile); loadEDAStates(paramSerFile); } 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); paraphraseLinker.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); } }
public void initialize(CommonConfig conf) throws EDAException { NameValueTable nameValueTable; try { nameValueTable = conf.getSection(this.getClass().getCanonicalName()); File modelFile = nameValueTable.getFile("modelFile"); initialize(modelFile); } catch (ConfigurationException e) { throw new EDAException ("Reading configuration data failed: " + e.getMessage(), e); } }
@Override protected EDAClassifierAbstraction prepareClassifier() throws EDAException { try { return new EDABinaryClassifierFromWeka(new Logistic(), null); } catch (ClassifierException ce) { throw new EDAException("Preparing an instance of Classifier for EDA failed: underlying Classifier raised an exception: ", ce); } }
@Override protected EDAClassifierAbstraction prepareClassifier() throws EDAException { try { return new EDABinaryClassifierFromWeka(new Logistic(), null); } catch (ClassifierException ce) { throw new EDAException("Preparing an instance of Classifier for EDA failed: underlying Classifier raised an exception: ", ce); } }
@Override protected EDAClassifierAbstraction prepareClassifier() throws EDAException { try { return new EDABinaryClassifierFromWeka(new Logistic(), null); } 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); } }
public void startTraining(CommonConfig conf) throws EDAException { // read from common config, and call argument version, NameValueTable nameValueTable; try { nameValueTable = conf.getSection(this.getClass().getCanonicalName()); File trainDir = nameValueTable.getFile("trainDir"); File modelFileToCreate = nameValueTable.getFile("modelFile"); startTraining(trainDir, modelFileToCreate); } catch (ConfigurationException ce) { throw new EDAException("Reading configuration from CommonConfig failed: " + ce.getMessage(), ce); } }
@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 { // 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); } }
public MinimalP1EDA() throws EDAException { try { aligner = new IdenticalLemmaPhraseLinker(); } catch (AlignmentComponentException ae) { throw new EDAException("Initializing Alignment components failed: " + ae.getMessage(), ae); } wordCoverageScorer = new SimpleWordCoverageCounter(null); nerCoverageScorer = new SimpleProperNounCoverageCounter(); verbCoverageScorer = new SimpleVerbCoverageCounter(); }