Package org.apache.nutch.scoring.similarity.cosine

# 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

  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)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### CosineSimilarity

    public CosineSimilarity()

- ## Method Details

  - ### setConf

    public void setConf(Configuration conf)
    Specified by:
      `setConf` in interface `SimilarityModel`

  - ### setURLScoreAfterParsing

    public float setURLScoreAfterParsing(Text url, Content content, Parse parse)
    Specified by:
      `setURLScoreAfterParsing` in interface `SimilarityModel`

  - ### distributeScoreToOutlinks

    public CrawlDatum distributeScoreToOutlinks(Text fromUrl, ParseData parseData, Collection<Map.Entry<Text,CrawlDatum>> targets, CrawlDatum adjust, int allCount)
    Specified by:
      `distributeScoreToOutlinks` in interface `SimilarityModel`