/** @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 Split(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
int endIndex = beginIndex + element.getWord().length(); final Split split = new CompoundPart(aJCas, beginIndex, endIndex); split.addToIndexes(); splitChildren.add(split); int newBeginIndex = endIndex; endIndex = newBeginIndex + element.getMorpheme().length(); final Split morpheme = new LinkingMorpheme(aJCas, newBeginIndex, endIndex); morpheme.addToIndexes(); splitChildren.add(morpheme); newBeginIndex = endIndex; parentSplit.setSplits(childArray); remainingSplit.addToIndexes();
@Override public void process(final JCas aJCas) throws AnalysisEngineProcessException { Token token; for (Compound compound : JCasUtil.select(aJCas, Compound.class)) { final Token compoundToken = JCasUtil.selectCovered(aJCas, Token.class, compound.getBegin(), compound.getEnd()).get(0); for (Split compoundPart : compound.getSplitsWithoutMorpheme(compoundSplitLevel)) { token = new Token(aJCas); token.setBegin(compoundPart.getBegin()); token.setEnd(compoundPart.getEnd()); token.setPos(compoundToken.getPos()); token.addToIndexes(); } } }
/** Internal - constructor used by generator * @generated * @param addr low level Feature Structure reference * @param type the type of this Feature Structure */ public Split(int addr, TOP_Type type) { super(addr, type); readObject(); }
splitList.add(split); if (split.getSplits() != null) { splitList.addAll(getSplits(createSplitsFromFSArray(split.getSplits()), includeMorpheme, splitLevel)); for (Split split : splits) { if ((includeMorpheme || !(split instanceof LinkingMorpheme)) && (split.getSplits() == null || split.getSplits().size() == 0)) { splitList.add(split); if (split.getSplits() != null) { splitList.addAll(getSplits(createSplitsFromFSArray(split.getSplits()), includeMorpheme, splitLevel));
/** @generated * @param jcas JCas to which this Feature Structure belongs */ public Split(JCas jcas) { super(jcas); readObject(); }
splitList.add(split); if (split.getSplits() != null) { splitList.addAll(getSplits(createSplitsFromFSArray(split.getSplits()), includeMorpheme, splitLevel)); for (Split split : splits) { if ((includeMorpheme || !(split instanceof LinkingMorpheme)) && (split.getSplits() == null || split.getSplits().size() == 0)) { splitList.add(split); if (split.getSplits() != null) { splitList.addAll(getSplits(createSplitsFromFSArray(split.getSplits()), includeMorpheme, splitLevel));
/** @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 Split(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
/** @generated * @param jcas JCas to which this Feature Structure belongs */ public Split(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 Split(int addr, TOP_Type type) { super(addr, type); readObject(); }