/** @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 Modifier(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
@Override public void process(JCas jCas) throws AnalysisEngineProcessException { JCas goldView; try { goldView = jCas.getView(SHARPXMI.GOLD_VIEW_NAME); } catch (CASException e) { throw new AnalysisEngineProcessException(e); } // remove any automatically generated Modifiers for (Modifier modifier : JCasUtil.select(jCas, Modifier.class)) { modifier.removeFromIndexes(); } // copy over the manually annotated Modifiers for (Modifier goldModifier : JCasUtil.select(goldView, Modifier.class)) { Modifier modifier = new Modifier(jCas, goldModifier.getBegin(), goldModifier.getEnd()); modifier.setTypeID(goldModifier.getTypeID()); modifier.setId(goldModifier.getId()); modifier.setDiscoveryTechnique(goldModifier.getDiscoveryTechnique()); modifier.setConfidence(goldModifier.getConfidence()); modifier.addToIndexes(); } } }
/** Internal - constructor used by generator * @generated * @param addr low level Feature Structure reference * @param type the type of this Feature Structure */ public Modifier(int addr, TOP_Type type) { super(addr, type); readObject(); }
@Override public void process(JCas jCas) throws AnalysisEngineProcessException { JCas goldView; try { goldView = jCas.getView(SHARPXMI.GOLD_VIEW_NAME); } catch (CASException e) { throw new AnalysisEngineProcessException(e); } // remove any automatically generated Modifiers for (Modifier modifier : JCasUtil.select(jCas, Modifier.class)) { modifier.removeFromIndexes(); } // copy over the manually annotated Modifiers for (Modifier goldModifier : JCasUtil.select(goldView, Modifier.class)) { Modifier modifier = new Modifier(jCas, goldModifier.getBegin(), goldModifier.getEnd()); modifier.setTypeID(goldModifier.getTypeID()); modifier.setId(goldModifier.getId()); modifier.setDiscoveryTechnique(goldModifier.getDiscoveryTechnique()); modifier.setConfidence(goldModifier.getConfidence()); modifier.addToIndexes(); } } }
/** Internal - constructor used by generator * @generated * @param addr low level Feature Structure reference * @param type the type of this Feature Structure */ public Modifier(int addr, TOP_Type type) { super(addr, type); 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 Modifier(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
/** @generated * @param jcas JCas to which this Feature Structure belongs */ public Modifier(JCas jcas) { super(jcas); 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 Modifier(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 Modifier(int addr, TOP_Type type) { super(addr, type); 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 Modifier(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
/** @generated * @param jcas JCas to which this Feature Structure belongs */ public Modifier(JCas jcas) { super(jcas); readObject(); }
/** @generated * @param jcas JCas to which this Feature Structure belongs */ public Modifier(JCas jcas) { super(jcas); readObject(); }
/** @generated * @param jcas JCas to which this Feature Structure belongs */ public Modifier(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 Modifier(int addr, TOP_Type type) { super(addr, type); readObject(); }