private void createdependency(WordToken govenor, WordToken dependent, String type) { Dependency dependency = new Dependency(jCas); dependency.setBegin(dependent.getBegin()); dependency.setEnd(dependent.getEnd()); dependency.setGovernor(govenor); dependency.setDependent(dependent); dependency.setDependencyType(type); dependency.addToIndexes(); }
/** * @generated * @param jcas JCas to which this Feature Structure belongs * @param begin offset to the begin spot in the SofA * @param end offset to the end spot in the SofA */ public Sentence(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
/** * @generated * @param jcas JCas to which this Feature Structure belongs * @param begin offset to the begin spot in the SofA * @param end offset to the end spot in the SofA */ public Interaction(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
private void setDependent(Dependency d, WordToken wt) { d.setDependent(wt); d.setBegin(wt.getBegin()); d.setEnd(wt.getEnd()); }
private void setGovernor(Dependency d, WordToken wt) { d.setGovernor(wt); d.setBegin(wt.getBegin()); d.setEnd(wt.getEnd()); } }
/** * @generated * @param jcas JCas to which this Feature Structure belongs * @param begin offset to the begin spot in the SofA * @param end offset to the end spot in the SofA */ public Dependency(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
/** * @generated * @param jcas JCas to which this Feature Structure belongs * @param begin offset to the begin spot in the SofA * @param end offset to the end spot in the SofA */ public Text(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
/** * @generated * @param jcas JCas to which this Feature Structure belongs * @param begin offset to the begin spot in the SofA * @param end offset to the end spot in the SofA */ public PhraseChunk(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
@Override public String toString() { return word.getCoveredText() + " " + distance; } }
/** * @generated * @param jcas JCas to which this Feature Structure belongs * @param begin offset to the begin spot in the SofA * @param end offset to the end spot in the SofA */ public WordLemma(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
/** * Internal - constructor used by generator * * @generated * @param addr low level Feature Structure reference * @param type the type of this Feature Structure */ public Text(int addr, TOP_Type type) { super(addr, type); readObject(); }
/** * @generated * @param jcas JCas to which this Feature Structure belongs */ public Paragraph(JCas jcas) { super(jcas); readObject(); }
/** * Internal - constructor used by generator * * @generated * @param addr low level Feature Structure reference * @param type the type of this Feature Structure */ public Sentence(int addr, TOP_Type type) { super(addr, type); readObject(); }
/** * Checks if this is the to word. * * @param token the token * @return true, if is to */ public boolean isTo(WordToken token) { return token.equals(to); }
/** * Internal - constructor used by generator * * @generated * @param addr low level Feature Structure reference * @param type the type of this Feature Structure */ public Dependency(int addr, TOP_Type type) { super(addr, type); readObject(); }
private void createdependency(WordToken govenor, WordToken dependent, String type) { Dependency dependency = new Dependency(jCas); dependency.setBegin(dependent.getBegin()); dependency.setEnd(dependent.getEnd()); dependency.setGovernor(govenor); dependency.setDependent(dependent); dependency.setDependencyType(type); dependency.addToIndexes(); }
/** * @generated * @param jcas JCas to which this Feature Structure belongs * @param begin offset to the begin spot in the SofA * @param end offset to the end spot in the SofA */ public Text(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
/** * @generated * @param jcas JCas to which this Feature Structure belongs */ public Text(JCas jcas) { super(jcas); readObject(); }
/** * Internal - constructor used by generator * * @generated * @param addr low level Feature Structure reference * @param type the type of this Feature Structure */ public Paragraph(int addr, TOP_Type type) { super(addr, type); readObject(); }
public static Dependency createDependency(JCas jCas, WordToken gov, WordToken dep, String type) { Dependency d = new Dependency(jCas); d.setDependencyType(type); d.setBegin(dep.getBegin()); d.setEnd(dep.getEnd()); d.setGovernor(gov); d.setDependent(dep); d.addToIndexes(); return d; }