private ICoreMap CreateMergedChunk(int groupStart, int groupEnd) { ICoreMap merged = null; /* if (annotation != null) { * // Take start and end * merged = ChunkAnnotationUtils.getMergedChunk(elements, annotation.get(CoreAnnotations.TextAnnotation.class), groupStart, groupEnd); * } */ if (merged == null) { // Okay, have to go through these one by one and merge them merged = CoreMapAggregator.GetDefaultAggregator().Merge(elements, groupStart, groupEnd); } return(merged); }
public virtual bool ExtractAnnotation <_T0>(Env env, IList <_T0> source) where _T0 : ICoreMap { return(ExtractAnnotation(source, CoreMapAggregator.GetDefaultAggregator())); }