[ 
https://issues.apache.org/jira/browse/NUTCH-2209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15127636#comment-15127636
 ] 

ASF GitHub Bot commented on NUTCH-2209:
---------------------------------------

Github user chrismattmann commented on a diff in the pull request:

    https://github.com/apache/nutch/pull/87#discussion_r51521811
  
    --- Diff: 
src/plugin/scoring-similarity/src/java/org/apache/nutch/scoring/similarity/util/LuceneAnalyzerUtil.java
 ---
    @@ -0,0 +1,94 @@
    +/**
    + * Licensed to the Apache Software Foundation (ASF) under one or more
    + * contributor license agreements.  See the NOTICE file distributed with
    + * this work for additional information regarding copyright ownership.
    + * The ASF licenses this file to You under the Apache License, Version 2.0
    + * (the "License"); you may not use this file except in compliance with
    + * the License.  You may obtain a copy of the License at
    + *
    + *     http://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
    +package org.apache.nutch.scoring.similarity.util;
    +
    +import java.io.Reader;
    +import java.util.List;
    +
    +import org.apache.lucene.analysis.Analyzer;
    +import org.apache.lucene.analysis.TokenStream;
    +import org.apache.lucene.analysis.Tokenizer;
    +import org.apache.lucene.analysis.core.LowerCaseFilter;
    +import org.apache.lucene.analysis.core.StopFilter;
    +import org.apache.lucene.analysis.en.EnglishMinimalStemFilter;
    +import org.apache.lucene.analysis.en.PorterStemFilter;
    +import org.apache.lucene.analysis.standard.ClassicTokenizer;
    +import org.apache.lucene.analysis.standard.StandardAnalyzer;
    +import org.apache.lucene.analysis.util.CharArraySet;
    +
    +/**
    + * Creates a custom analyzer based on user provided inputs
    + * @author Sujen Shah
    --- End diff --
    
    remove author tags.


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

Reply via email to