throw new AlignmentComponentException("Unable to build an aligner from null Lexical Resource: lexicalResource passed was null");
@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. rather slow. aligner4.annotate(input); } catch (PairAnnotatorComponentException pe) { throw new EDAException("Underlying aligner raised an exception", pe); } }
public MeteorPhraseResourceAligner(String resourcePath, int maxPhraseLength) throws AlignmentComponentException { // initialize private final variables //logger = Logger.getLogger(this.getClass().toString()); // we use a static instance this.resourcePath = resourcePath; this.maxPhraseLength = maxPhraseLength; // load table. try { this.table = new MeteorPhraseTable(resourcePath); } catch (IOException e) { throw new AlignmentComponentException("Loading the paraphrase table with the following resource path have failed: " + resourcePath, e); } }
@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); } }
/** * Initialize a lexical aligner from the configuration * @param config a CommonConfig instance. The aligner retrieves the lexical * resources configuration values. * @throws AlignmentComponentException if initialization failed */ public LexicalAligner(CommonConfig config) throws AlignmentComponentException { lexicalResourcesInformation = new HashMap<String, LexicalResourceInformation>(); // Initialize the lexical aligner try { init(config); } catch (ConfigurationException | LexicalResourceException e) { throw new AlignmentComponentException( "Could not initialize the lexical aligner", e); } }
@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); } }
/** * close() */ public void close() throws AlignmentComponentException { try { underlyingResource.close(); } catch (LexicalResourceCloseException le) { throw new AlignmentComponentException("closing the underlying lexical resource failed: " + le.getMessage(), le); } }
@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); } }
/** * * @param wordNetPath * @throws AlignmentComponentException */ public GermanTransDMDELinker(String simMeasureChoice) throws AlignmentComponentException { try { GermanTransDmResource lex = new GermanTransDmResource(simMeasureChoice); // LexicalAligner theAligner = LexicalAlignerFactory.getLexicalAlignerFromLexicalResource(lex, 1, "1.3", true, null, null); // worker = theAligner; worker = new LexicalAlignerFromLexicalResource(lex); } catch (ConfigurationException ce) { throw new AlignmentComponentException ("Underlying resource thrown an exception: " + ce.getMessage(), 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); // 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. 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); } }
@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); } }
@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); } }