Class CosineSimilarity
- java.lang.Object
-
- org.apache.nutch.scoring.similarity.cosine.CosineSimilarity
-
- All Implemented Interfaces:
SimilarityModel
public class CosineSimilarity extends Object implements SimilarityModel
-
-
Constructor Summary
Constructors Constructor Description CosineSimilarity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CrawlDatum
distributeScoreToOutlinks(Text fromUrl, ParseData parseData, Collection<Map.Entry<Text,CrawlDatum>> targets, CrawlDatum adjust, int allCount)
void
setConf(Configuration conf)
float
setURLScoreAfterParsing(Text url, Content content, Parse parse)
-
-
-
Method Detail
-
setConf
public void setConf(Configuration conf)
- Specified by:
setConf
in interfaceSimilarityModel
-
setURLScoreAfterParsing
public float setURLScoreAfterParsing(Text url, Content content, Parse parse)
- Specified by:
setURLScoreAfterParsing
in interfaceSimilarityModel
-
distributeScoreToOutlinks
public CrawlDatum distributeScoreToOutlinks(Text fromUrl, ParseData parseData, Collection<Map.Entry<Text,CrawlDatum>> targets, CrawlDatum adjust, int allCount)
- Specified by:
distributeScoreToOutlinks
in interfaceSimilarityModel
-
-