edu.umd.cloud9.webgraph.normalizer
Class AnchorTextBasicNormalizer

java.lang.Object
  extended by edu.umd.cloud9.webgraph.normalizer.AnchorTextBasicNormalizer
All Implemented Interfaces:
AnchorTextNormalizer

public class AnchorTextBasicNormalizer
extends Object
implements AnchorTextNormalizer

Author:
Nima Asadi

Constructor Summary
AnchorTextBasicNormalizer()
           
 
Method Summary
 boolean isStopWord(String word)
           
 String normalize(String anchor)
           
 String process(String anchor)
          An auxiliary method which performs any other types of normalization.
 String removeStopWords(String anchor)
          Removes the stop-words
 String stem(String anchor)
          Stemmer.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnchorTextBasicNormalizer

public AnchorTextBasicNormalizer()
Method Detail

isStopWord

public boolean isStopWord(String word)

normalize

public String normalize(String anchor)
Specified by:
normalize in interface AnchorTextNormalizer
Parameters:
anchor - original line of anchor text
Returns:
A line of anchor text where the anchor text is normalized (lower-case, etc.)

removeStopWords

public String removeStopWords(String anchor)
Description copied from interface: AnchorTextNormalizer
Removes the stop-words

Specified by:
removeStopWords in interface AnchorTextNormalizer
Parameters:
anchor - original line of anchor text
Returns:
A line of anchor text without the stop-words

stem

public String stem(String anchor)
Description copied from interface: AnchorTextNormalizer
Stemmer.

Specified by:
stem in interface AnchorTextNormalizer
Parameters:
anchor - original line of anchor text
Returns:
A line of anchor text where every word from the original anchor text is stemmed.

process

public String process(String anchor)
Description copied from interface: AnchorTextNormalizer
An auxiliary method which performs any other types of normalization.

Specified by:
process in interface AnchorTextNormalizer
Parameters:
anchor - original line of anchor text
Returns:
A processed line of anchor text.