/** @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 Sentence(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
Integer begin = sentenceBoundaries.get(0); Integer end = sentenceBoundaries.get(1); s.setBegin(begin); s.setEnd(end); s.addToIndexes();
outSentence.setBegin(tokensStored.get("t_" + firstTokenInSentence.get(i)).getEnd()); outSentence.setEnd(tokensStored.get("t_" + (tokensStored.size())).getEnd()); outSentence.addToIndexes(); outSentence.setBegin(tokensStored.get("t_" + firstTokenInSentence.get(i)) .getBegin()); outSentence.setEnd(tokensStored.get("t_" + (tokensStored.size())).getEnd()); outSentence.setBegin(tokensStored.get("t_" + firstTokenInSentence.get(i)) .getBegin()); outSentence.setEnd(tokensStored.get("t_" + firstTokenInSentence.get(i + 1)) .setBegin(tokensStored.get("t_" + firstTokenInSentence.get(i)).getEnd() + 1); outSentence.setEnd(tokensStored.get("t_" + firstTokenInSentence.get(i + 1)) .getEnd());
outSentence.setBegin(tokensStored.get("t_" + firstTokenInSentence.get(i)).getEnd()); outSentence.setEnd(tokensStored.get("t_" + (tokensStored.size())).getEnd()); outSentence.addToIndexes(); outSentence.setBegin(tokensStored.get("t_" + firstTokenInSentence.get(i)) .getBegin()); outSentence.setEnd(tokensStored.get("t_" + (tokensStored.size())).getEnd()); outSentence.setBegin(tokensStored.get("t_" + firstTokenInSentence.get(i)) .getBegin()); outSentence.setEnd(tokensStored.get("t_" + firstTokenInSentence.get(i + 1)) outSentence.setBegin( tokensStored.get("t_" + firstTokenInSentence.get(i)).getEnd() + 1); outSentence
outSentence.setBegin(tokensStored.get("t_" + firstTokenInSentence.get(i)).getEnd()); outSentence.setEnd(tokensStored.get("t_" + (tokensStored.size())).getEnd()); outSentence.addToIndexes(); outSentence.setBegin(tokensStored.get("t_" + firstTokenInSentence.get(i)) .getBegin()); outSentence.setEnd(tokensStored.get("t_" + (tokensStored.size())).getEnd()); outSentence.setBegin(tokensStored.get("t_" + firstTokenInSentence.get(i)) .getBegin()); outSentence.setEnd(tokensStored.get("t_" + firstTokenInSentence.get(i + 1)) outSentence.setBegin( tokensStored.get("t_" + firstTokenInSentence.get(i)).getEnd() + 1); outSentence
outSentence.setBegin(tokensStored.get("t_" + firstTokenInSentence.get(i)).getEnd()); outSentence.setEnd(tokensStored.get("t_" + (tokensStored.size())).getEnd()); outSentence.addToIndexes(); outSentence.setBegin(tokensStored.get("t_" + firstTokenInSentence.get(i)) .getBegin()); outSentence.setEnd(tokensStored.get("t_" + (tokensStored.size())).getEnd()); outSentence.setBegin(tokensStored.get("t_" + firstTokenInSentence.get(i)) .getBegin()); outSentence.setEnd(tokensStored.get("t_" + firstTokenInSentence.get(i + 1)) .setBegin(tokensStored.get("t_" + firstTokenInSentence.get(i)).getEnd() + 1); outSentence.setEnd(tokensStored.get("t_" + firstTokenInSentence.get(i + 1)) .getEnd());
outSentence.setBegin(tokensStored.get("t_" + firstTokenInSentence.get(i)).getEnd()); outSentence.setEnd(tokensStored.get("t_" + (tokensStored.size())).getEnd()); outSentence.addToIndexes(); outSentence.setBegin(tokensStored.get("t_" + firstTokenInSentence.get(i)) .getBegin()); outSentence.setEnd(tokensStored.get("t_" +(tokensStored.size())).getEnd()); outSentence.setBegin(tokensStored.get("t_" + firstTokenInSentence.get(i)) .getBegin()); outSentence.setEnd(tokensStored.get("t_" + firstTokenInSentence.get(i + 1)) .setBegin(tokensStored.get("t_" + firstTokenInSentence.get(i)).getEnd() + 1); outSentence.setEnd(tokensStored.get("t_" + firstTokenInSentence.get(i + 1)) .getEnd());
sentenceAnnot.setBegin(dockedSentence.getCharOffsetStart()); sentenceAnnot.setEnd(dockedSentence.getCharOffsetEnd()); sentenceAnnot.addToIndexes();
uimaSentence.setBegin(text.length()); sentence = aDoc.createSentence(uimaSentence); text.append(sentenceText);
uimaSentence.setBegin(text.length()); sentence = aDoc.createSentence(uimaSentence); text.append(sentenceText);
outSentence.setBegin(sentenceBegin); outSentence.setEnd(tokenBeginPosition); outSentence.addToIndexes();
Element sentence = sentenceIterator.next(); Sentence sentenceAnnotation = new Sentence(jCas); sentenceAnnotation.setBegin(offset); String sentenceId = sentence.attributeValue(ATTR_SNUM); int wordFormCount = 0;
outSentence.setBegin(sentenceBegin); outSentence.setEnd(tokenBeginPosition); outSentence.addToIndexes();
private void convertSentences(JCas aJCas, TextCorpus aCorpusData, Map<String, Token> aTokens) { if (aCorpusData.getSentencesLayer() == null) { // No layer to read from. return; } for (int i = 0; i < aCorpusData.getSentencesLayer().size(); i++) { eu.clarin.weblicht.wlfxb.tc.api.Token[] sentencesTokens = aCorpusData .getSentencesLayer().getTokens(aCorpusData.getSentencesLayer().getSentence(i)); Sentence outSentence = new Sentence(aJCas); outSentence.setBegin(aTokens.get(sentencesTokens[0].getID()).getBegin()); outSentence.setEnd( aTokens.get(sentencesTokens[sentencesTokens.length - 1].getID()).getEnd()); outSentence.addToIndexes(); } }
private void convertSentences(JCas aJCas, TextCorpus aCorpusData, Map<String, Token> aTokens) { if (aCorpusData.getSentencesLayer() == null) { // No layer to read from. return; } for (int i = 0; i < aCorpusData.getSentencesLayer().size(); i++) { eu.clarin.weblicht.wlfxb.tc.api.Token[] sentencesTokens = aCorpusData .getSentencesLayer().getTokens(aCorpusData.getSentencesLayer().getSentence(i)); Sentence outSentence = new Sentence(aJCas); outSentence.setBegin(aTokens.get(sentencesTokens[0].getID()).getBegin()); outSentence.setEnd( aTokens.get(sentencesTokens[sentencesTokens.length - 1].getID()).getEnd()); outSentence.addToIndexes(); } }
private void convertSentences(JCas aJCas, TextCorpus aCorpusData, Map<String, Token> aTokens) { if (aCorpusData.getSentencesLayer() == null) { // No layer to read from. return; } for (int i = 0; i < aCorpusData.getSentencesLayer().size(); i++) { eu.clarin.weblicht.wlfxb.tc.api.Token[] sentencesTokens = aCorpusData .getSentencesLayer().getTokens(aCorpusData.getSentencesLayer().getSentence(i)); Sentence outSentence = new Sentence(aJCas); outSentence.setBegin(aTokens.get(sentencesTokens[0].getID()).getBegin()); outSentence.setEnd(aTokens.get(sentencesTokens[sentencesTokens.length - 1].getID()) .getEnd()); outSentence.addToIndexes(); } }
outSentence.setBegin(sentenceBegin); outSentence.setEnd(tokenBeginPosition); outSentence.addToIndexes();
private void convertSentences(JCas aJCas, TextCorpus aCorpusData, Map<String, Token> aTokens) { if (aCorpusData.getSentencesLayer() == null) { // No layer to read from. return; } for (int i = 0; i < aCorpusData.getSentencesLayer().size(); i++) { eu.clarin.weblicht.wlfxb.tc.api.Token[] sentencesTokens = aCorpusData .getSentencesLayer().getTokens(aCorpusData.getSentencesLayer().getSentence(i)); Sentence outSentence = new Sentence(aJCas); outSentence.setBegin(aTokens.get(sentencesTokens[0].getID()).getBegin()); outSentence.setEnd(aTokens.get(sentencesTokens[sentencesTokens.length - 1].getID()) .getEnd()); outSentence.addToIndexes(); } }
sentAnnotation.setBegin(sent.getBegin()); sentAnnotation.setEnd(sent.getEnd()); sentAnnotation.addToIndexes();