Terrier IR Platform
2.2.1

uk.ac.gla.terrier.terms
Class CropTerm

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

public final class CropTerm
extends java.lang.Object
implements TermPipeline

Reduces the size of terms passing through the term pipeline to the maximum allowed size for this indexing run. The crop term pipeline class has been provided as some term pipeline implementators (eg SnowballGermanStemmer) may actually lengthen words that did previously fit in the indexing.

Version:
$Revision: 1.6 $
Author:
Craig Macdonald

Constructor Summary
CropTerm(TermPipeline next)
          Creates a new CropTerm pipeline object, which can be used in the term pipeline
 
Method Summary
 void processTerm(java.lang.String t)
          Reduces the term to the maximum allowed size for this indexing run
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CropTerm

public CropTerm(TermPipeline next)
Creates a new CropTerm pipeline object, which can be used in the term pipeline

Parameters:
next - The next termpipeline object to pass the term onto.
Method Detail

processTerm

public final void processTerm(java.lang.String t)
Reduces the term to the maximum allowed size for this indexing run

Specified by:
processTerm in interface TermPipeline
Parameters:
t - String the term to check the length of.

Terrier IR Platform
2.2.1

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