edu.umd.cloud9.webgraph.normalizer
Interface AnchorTextNormalizer

All Known Implementing Classes:
AnchorTextBasicNormalizer

public interface AnchorTextNormalizer

An interface for normalizing lines of anchor text. A Normalizer consists of an stemming, removing the stop-word, and other processes that lines of anchor text would need to go through, such as converting to lower case, etc.

Author:
Nima Asadi

Method Summary
 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.
 

Method Detail

stem

String stem(String anchor)
Stemmer.

Parameters:
anchor - original line of anchor text
Returns:
A line of anchor text where every word from the original anchor text is stemmed.

normalize

String normalize(String anchor)
Parameters:
anchor - original line of anchor text
Returns:
A line of anchor text where the anchor text is normalized (lower-case, etc.)

removeStopWords

String removeStopWords(String anchor)
Removes the stop-words

Parameters:
anchor - original line of anchor text
Returns:
A line of anchor text without the stop-words

process

String process(String anchor)
An auxiliary method which performs any other types of normalization.

Parameters:
anchor - original line of anchor text
Returns:
A processed line of anchor text.