Package org.terrier.terms
Class DumpTerm
- java.lang.Object
-
- org.terrier.terms.DumpTerm
-
- All Implemented Interfaces:
TermPipeline
public class DumpTerm extends java.lang.Object implements TermPipeline
Useful development phase TermPipeline object that allows prints every term that passes through it to System.err
-
-
Constructor Summary
Constructors Constructor Description DumpTerm(TermPipeline _next)
Construct a new DumpTerm objecy
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
processTerm(java.lang.String t)
Displays the given on STDERR, then passes onto next pipeline object.boolean
reset()
Implements the default operation for all TermPipeline subclasses; By default do nothing.
-
-
-
Constructor Detail
-
DumpTerm
public DumpTerm(TermPipeline _next)
Construct a new DumpTerm objecy
-
-
Method Detail
-
processTerm
public void processTerm(java.lang.String t)
Displays the given on STDERR, then passes onto next pipeline object.- Specified by:
processTerm
in interfaceTermPipeline
- Parameters:
t
- String the term to pass onto next pipeline object
-
reset
public boolean reset()
Implements the default operation for all TermPipeline subclasses; By default do nothing. This method should be overrided by any TermPipeline that want to implements doc/query oriented lifecycle.- Specified by:
reset
in interfaceTermPipeline
- Returns:
- return how the reset has gone
-
-