numberRanges.add(matched.get(0));
} else {
Number v1 = matched.get(0).get(CoreAnnotations.NumericCompositeValueAnnotation.class);
Number v2 = matched.get(matched.size()-1).get(CoreAnnotations.NumericCompositeValueAnnotation.class);
if (v2.doubleValue() > v1.doubleValue()) {
CoreMap newChunk = ChunkAnnotationUtils.getMergedChunk(numerizedTokens, matcher.start(), matcher.end(),
CoreMapAttributeAggregator.getDefaultAggregators());
newChunk.set(CoreAnnotations.NumericCompositeTypeAnnotation.class, "NUMBER_RANGE");
Pair<Number,Number> range = new Pair<Number,Number>(v1,v2);
newChunk.set(CoreAnnotations.NumericCompositeObjectAnnotation.class, range);
numberRanges.add(newChunk);