nutch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lewismc <...@git.apache.org>
Subject [GitHub] nutch pull request: Fix for NUTCH-2245 NGram Model for Cosine Simi...
Date Fri, 01 Apr 2016 23:13:53 GMT
Github user lewismc commented on a diff in the pull request:

    https://github.com/apache/nutch/pull/101#discussion_r58279977
  
    --- Diff: src/plugin/scoring-similarity/src/java/org/apache/nutch/scoring/similarity/cosine/Model.java
---
    @@ -68,6 +68,11 @@ public static synchronized void createModel(Configuration conf) throws
IOExcepti
             }
             LOG.info("Loaded custom stopwords from {}",conf.get("scoring.similarity.stopword.file"));
           }
    +
    +      //Check if user has specified n for ngram cosine model
    +      int ngram = conf.getInt("scoring.similarity.ngrams", 1);
    +      LOG.info("Value of ngram: "+ngram);
    --- End diff --
    
    Please use correct effficient slf4j code notation here
    e.g. LOG.info("Value of ngram: {} ", ngram);


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message