/** @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(); }
.append(sentence_id + "\t" + s.getCoveredText() .replaceAll("[\t\r\n]", " ") + "\n"); sentence_id++;
/** 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(); }
public FeatureStructure createFS(int addr, CASImpl cas) { if (Sentence_Type.this.useExistingInstance) { // Return eq fs instance if already created FeatureStructure fs = Sentence_Type.this.jcas.getJfsFromCaddr(addr); if (null == fs) { fs = new Sentence(addr, Sentence_Type.this); Sentence_Type.this.jcas.putJfsFromCaddr(addr, fs); return fs; } return fs; } else return new Sentence(addr, Sentence_Type.this); } };
LOG.error("Viterbi failed for sentence '" + s.getCoveredText() + "' in pmid " + getHeaderDocId(jCas), e);
/** @generated * @param jcas JCas to which this Feature Structure belongs */ public Sentence(JCas jcas) { super(jcas); readObject(); }
return "Sentence[" + s.getCoveredText() + "]";