edu.umd.cloud9.webgraph.normalizer
Class AnchorTextBasicNormalizer
java.lang.Object
edu.umd.cloud9.webgraph.normalizer.AnchorTextBasicNormalizer
- All Implemented Interfaces:
- AnchorTextNormalizer
public class AnchorTextBasicNormalizer
- extends Object
- implements AnchorTextNormalizer
- Author:
- Nima Asadi
AnchorTextBasicNormalizer
public AnchorTextBasicNormalizer()
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.