edu.washington.cs.knowitall.extractor.mapper
Class IndependentMapper<T>
java.lang.Object
edu.washington.cs.knowitall.extractor.mapper.Mapper<T>
edu.washington.cs.knowitall.extractor.mapper.IndependentMapper<T>
- Type Parameters:
T -
- Direct Known Subclasses:
- BracketsRemover, DeUnicoder, JunkRemover, OrdinalPreprocessor
public abstract class IndependentMapper<T>
- extends Mapper<T>
A type of mapper that operates on each object in a stream independently. Subclasses
extending this class only have to implement the doMap(T object) method,
which is then applied to each object in the argument of map(Iterable objects).
- Author:
- afader
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IndependentMapper
public IndependentMapper()
doMap
public abstract T doMap(T object)
doMap
protected Iterable<T> doMap(Iterable<T> objects)
- Specified by:
doMap in class Mapper<T>
- Parameters:
objects - a stream of objects
- Returns:
- a modified stream of objects
Copyright © 2010-2012 University of Washington CSE. All Rights Reserved.