Terrier IR Platform
2.2.1

uk.ac.gla.terrier.terms
Class SkipTermPipeline

java.lang.Object
  extended by uk.ac.gla.terrier.terms.SkipTermPipeline
All Implemented Interfaces:
TermPipeline

public class SkipTermPipeline
extends java.lang.Object
implements TermPipeline

Class that identified tokens which should not be passed down the entire term pipeline, and instead passed onto a specified stage instead. Tokens are autmatically lowercased if lowercase is set (as it is by default). If no tokens are specified, then no tokens are omitted from the term pipeline.

Properties

Since:
2.2
Version:
$Revision: 1.1 $
Author:
Rodrygo Santos and Craig Macdonald

Constructor Summary
SkipTermPipeline(TermPipeline _next, TermPipeline _last)
          Instantiate this object, using properties to define tokens.
SkipTermPipeline(TermPipeline _next, TermPipeline _last, java.lang.String[] _skipTokens)
          Instantiate this object.
 
Method Summary
 void processTerm(java.lang.String term)
          Processes this token.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SkipTermPipeline

public SkipTermPipeline(TermPipeline _next,
                        TermPipeline _last)
Instantiate this object, using properties to define tokens. Skip tokens are specified as a comma delimited list, using the termpipelines.skip property. Terms are lowercased if lowercase is set (as it is by default).


SkipTermPipeline

public SkipTermPipeline(TermPipeline _next,
                        TermPipeline _last,
                        java.lang.String[] _skipTokens)
Instantiate this object. Terms in skipTokens will be passed to the last term pipeline object instead of the next.

Method Detail

processTerm

public void processTerm(java.lang.String term)
Processes this token. If is a specified token, then passes it to the last stage in the pipgeline, instead of onto the next one.

Specified by:
processTerm in interface TermPipeline
Parameters:
term -

Terrier IR Platform
2.2.1

Terrier Information Retrieval Platform 2.2.1. Copyright 2004-2008 University of Glasgow