/** @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 Chunk(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 Chunk(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 Chunk(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 Chunk(JCas jcas, int begin, int end) { super(jcas); setBegin(begin); setEnd(end); readObject(); }
/** * Update the end value for the chunk to have the new value * * @param chunk * The chunk to update * @param newEnd * The new end value for the chunk. * @return The updated Chunk * @throws AnnotatorProcessException */ private static Chunk extendChunk(Chunk chunk, int newEnd) throws AnalysisEngineProcessException { if (newEnd < chunk.getBegin()) { Exception e; e = new Exception("New end offset (" + newEnd + ") < begin offset (" + chunk.getBegin() + ")."); throw new AnalysisEngineProcessException(e); } // logger.info("Extending chunk end from " +chunk.getEnd()+ " to " + // newEnd + "."); // logger.info("For chunk " + chunk.getChunkType()); // logger.info(" text = '" + chunk.getCoveredText() + "'."); chunk.setEnd(newEnd); // logger.info(" new text = '" + chunk.getCoveredText() + "'."); return chunk; }
/** * Update the end value for the chunk to have the new value * * @param chunk * The chunk to update * @param newEnd * The new end value for the chunk. * @return The updated Chunk * @throws AnnotatorProcessException */ private static Chunk extendChunk(Chunk chunk, int newEnd) throws AnalysisEngineProcessException { if (newEnd < chunk.getBegin()) { Exception e; e = new Exception("New end offset (" + newEnd + ") < begin offset (" + chunk.getBegin() + ")."); throw new AnalysisEngineProcessException(e); } // logger.info("Extending chunk end from " +chunk.getEnd()+ " to " + // newEnd + "."); // logger.info("For chunk " + chunk.getChunkType()); // logger.info(" text = '" + chunk.getCoveredText() + "'."); chunk.setEnd(newEnd); // logger.info(" new text = '" + chunk.getCoveredText() + "'."); return chunk; }