nutch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lewismc <>
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:
    --- Diff: src/plugin/scoring-similarity/src/java/org/apache/nutch/scoring/similarity/cosine/
    @@ -68,6 +68,11 @@ public static synchronized void createModel(Configuration conf) throws
   "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);
    +"Value of ngram: "+ngram);
    --- End diff --
    Please use correct effficient slf4j code notation here
    e.g."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 or file a JIRA ticket
with INFRA.

View raw message