/** @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 BrainRegion(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
} else if (label.equals(TARGET_O) && begin != null) { new BrainRegion(jCas, begin, end).addToIndexes(); begin = null; new BrainRegion(jCas, begin, end).addToIndexes(); new Gold(jCas, brGold.getBegin(), brGold.getEnd()) .addToIndexes();
@Override public void process(JCas jCas) throws AnalysisEngineProcessException { for (BrainRegion br : select(jCas, BrainRegion.class)) { BrainRegionDictTerm brdt = new BrainRegionDictTerm(jCas, br.getBegin(), br.getEnd()); brdt.setEntityId(br.getCoveredText().replaceAll("[\r\t\n]", "")); brdt.addToIndexes(); } } }
public FeatureStructure createFS(int addr, CASImpl cas) { if (BrainRegion_Type.this.useExistingInstance) { // Return eq fs instance if already created FeatureStructure fs = BrainRegion_Type.this.jcas.getJfsFromCaddr(addr); if (null == fs) { fs = new BrainRegion(addr, BrainRegion_Type.this); BrainRegion_Type.this.jcas.putJfsFromCaddr(addr, fs); return fs; } return fs; } else return new BrainRegion(addr, BrainRegion_Type.this); } };
return "BrainRegion[" + b.getCoveredText() + "]"; } else if (o instanceof Concentration) { Concentration c = (Concentration) o;
/** Internal - constructor used by generator * @generated * @param addr low level Feature Structure reference * @param type the type of this Feature Structure */ public BrainRegion(int addr, TOP_Type type) { super(addr, type); readObject(); }
/** @generated * @param jcas JCas to which this Feature Structure belongs */ public BrainRegion(JCas jcas) { super(jcas); readObject(); }