Open zhangxianjun opened 5 years ago
词语出现在文章,文章总数是用的词频。 public Keyword(String name, int docFreq, double weight) { this.name = name; this.idf = Math.log(10000 + 10000.0 / (docFreq + 1)); this.score = idf * weight; freq++; }
词语出现在文章,文章总数是用的词频。 public Keyword(String name, int docFreq, double weight) { this.name = name; this.idf = Math.log(10000 + 10000.0 / (docFreq + 1)); this.score = idf * weight; freq++; }