[
https://issues.apache.org/jira/browse/NUTCH-2209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15129594#comment-15129594
]
ASF GitHub Bot commented on NUTCH-2209:
---------------------------------------
Github user lewismc commented on a diff in the pull request:
https://github.com/apache/nutch/pull/87#discussion_r51668748
--- Diff:
src/plugin/scoring-similarity/src/java/org/apache/nutch/scoring/similarity/SimilarityScoringFilter.java
---
@@ -43,7 +43,11 @@ public Configuration getConf() {
@Override
public void setConf(Configuration conf) {
this.conf = conf;
- similarityModel = new CosineSimilarityModel();
+ switch(conf.get("scoring.similarity.model","cosine")){
--- End diff --
This property does not yet exist in nutch-default.xml it needs to be added
> Improved Tokenization for Similarity Scoring plugin
> ---------------------------------------------------
>
> Key: NUTCH-2209
> URL: https://issues.apache.org/jira/browse/NUTCH-2209
> Project: Nutch
> Issue Type: Improvement
> Components: scoring
> Reporter: Sujen Shah
> Assignee: Sujen Shah
> Labels: memex
> Fix For: 1.13
>
>
> This patch would add Lucene based tokenization to the cosine similarity
> plugin and clean up the code currently present.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)