public class MergeOverlappingMapper extends Mapper<ChunkedExtraction>
ChunkedExtractions from the same sentence, merges
those extractions that are next to each other or overlapping. For example,
given the sentence "He wants to go to the store" and the relations "wants to"
and "go to", returns "wants to go to".| Constructor and Description |
|---|
MergeOverlappingMapper() |
| Modifier and Type | Method and Description |
|---|---|
protected Iterable<ChunkedExtraction> |
doMap(Iterable<ChunkedExtraction> extrs) |
static List<edu.washington.cs.knowitall.commonlib.Range> |
mergeOverlapping(List<edu.washington.cs.knowitall.commonlib.Range> ranges) |
public static List<edu.washington.cs.knowitall.commonlib.Range> mergeOverlapping(List<edu.washington.cs.knowitall.commonlib.Range> ranges)
protected Iterable<ChunkedExtraction> doMap(Iterable<ChunkedExtraction> extrs)
doMap in class Mapper<ChunkedExtraction>extrs - a stream of objectsCopyright © 2010-2013 University of Washington CSE. All Rights Reserved.