You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sa...@apache.org on 2017/12/19 00:04:33 UTC

[1/4] lucene-solr:master: LUCENE-2899: OpenNLPPOSFilter: fix reset() to fully reset

Repository: lucene-solr
Updated Branches:
  refs/heads/branch_7x 6d4dcf8ee -> 42239ea51
  refs/heads/master f8c93db9e -> f8fb13965


LUCENE-2899: OpenNLPPOSFilter: fix reset() to fully reset


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/f8fb1396
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/f8fb1396
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/f8fb1396

Branch: refs/heads/master
Commit: f8fb13965612142e9ee91631c6ce80a7b255e348
Parents: 8275952
Author: Steve Rowe <sa...@apache.org>
Authored: Mon Dec 18 19:03:08 2017 -0500
Committer: Steve Rowe <sa...@apache.org>
Committed: Mon Dec 18 19:03:29 2017 -0500

----------------------------------------------------------------------
 .../java/org/apache/lucene/analysis/opennlp/OpenNLPPOSFilter.java   | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/f8fb1396/lucene/analysis/opennlp/src/java/org/apache/lucene/analysis/opennlp/OpenNLPPOSFilter.java
----------------------------------------------------------------------
diff --git a/lucene/analysis/opennlp/src/java/org/apache/lucene/analysis/opennlp/OpenNLPPOSFilter.java b/lucene/analysis/opennlp/src/java/org/apache/lucene/analysis/opennlp/OpenNLPPOSFilter.java
index a5bea28..275b29c 100644
--- a/lucene/analysis/opennlp/src/java/org/apache/lucene/analysis/opennlp/OpenNLPPOSFilter.java
+++ b/lucene/analysis/opennlp/src/java/org/apache/lucene/analysis/opennlp/OpenNLPPOSFilter.java
@@ -86,6 +86,7 @@ public final class OpenNLPPOSFilter extends TokenFilter {
   public void reset() throws IOException {
     super.reset();
     moreTokensAvailable = true;
+    clear();
   }
 
   private void clear() {


[4/4] lucene-solr:branch_7x: LUCENE-2899: OpenNLPPOSFilter: fix reset() to fully reset

Posted by sa...@apache.org.
LUCENE-2899: OpenNLPPOSFilter: fix reset() to fully reset


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/42239ea5
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/42239ea5
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/42239ea5

Branch: refs/heads/branch_7x
Commit: 42239ea51d9b1c34f20d273ab06821e22b421e54
Parents: 40ed963
Author: Steve Rowe <sa...@apache.org>
Authored: Mon Dec 18 19:03:08 2017 -0500
Committer: Steve Rowe <sa...@apache.org>
Committed: Mon Dec 18 19:04:23 2017 -0500

----------------------------------------------------------------------
 .../java/org/apache/lucene/analysis/opennlp/OpenNLPPOSFilter.java   | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/42239ea5/lucene/analysis/opennlp/src/java/org/apache/lucene/analysis/opennlp/OpenNLPPOSFilter.java
----------------------------------------------------------------------
diff --git a/lucene/analysis/opennlp/src/java/org/apache/lucene/analysis/opennlp/OpenNLPPOSFilter.java b/lucene/analysis/opennlp/src/java/org/apache/lucene/analysis/opennlp/OpenNLPPOSFilter.java
index a5bea28..275b29c 100644
--- a/lucene/analysis/opennlp/src/java/org/apache/lucene/analysis/opennlp/OpenNLPPOSFilter.java
+++ b/lucene/analysis/opennlp/src/java/org/apache/lucene/analysis/opennlp/OpenNLPPOSFilter.java
@@ -86,6 +86,7 @@ public final class OpenNLPPOSFilter extends TokenFilter {
   public void reset() throws IOException {
     super.reset();
     moreTokensAvailable = true;
+    clear();
   }
 
   private void clear() {


[2/4] lucene-solr:master: LUCENE-2899: tests: remove unused constants

Posted by sa...@apache.org.
LUCENE-2899: tests: remove unused constants


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/82759523
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/82759523
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/82759523

Branch: refs/heads/master
Commit: 827595233751d97d8a2408e69be5dbaf004c7d55
Parents: f8c93db
Author: Steve Rowe <sa...@apache.org>
Authored: Mon Dec 18 19:01:46 2017 -0500
Committer: Steve Rowe <sa...@apache.org>
Committed: Mon Dec 18 19:03:29 2017 -0500

----------------------------------------------------------------------
 .../lucene/analysis/opennlp/TestOpenNLPPOSFilterFactory.java      | 3 ---
 .../lucene/analysis/opennlp/TestOpenNLPTokenizerFactory.java      | 1 -
 2 files changed, 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/82759523/lucene/analysis/opennlp/src/test/org/apache/lucene/analysis/opennlp/TestOpenNLPPOSFilterFactory.java
----------------------------------------------------------------------
diff --git a/lucene/analysis/opennlp/src/test/org/apache/lucene/analysis/opennlp/TestOpenNLPPOSFilterFactory.java b/lucene/analysis/opennlp/src/test/org/apache/lucene/analysis/opennlp/TestOpenNLPPOSFilterFactory.java
index 10372d0..814f480 100644
--- a/lucene/analysis/opennlp/src/test/org/apache/lucene/analysis/opennlp/TestOpenNLPPOSFilterFactory.java
+++ b/lucene/analysis/opennlp/src/test/org/apache/lucene/analysis/opennlp/TestOpenNLPPOSFilterFactory.java
@@ -41,9 +41,6 @@ public class TestOpenNLPPOSFilterFactory extends BaseTokenStreamTestCase {
   private static final int[] SENTENCES_endOffsets = {8, 15, 17, 21, 23, 29, 30, 39, 46, 48, 49, 51, 57, 58};
   private static final String[] SENTENCES_posTags
       = {"NN", "NN", "CD", "VBZ", "CD", "NNS", ".", "NN", "NN", "CD", ",", "CD", "NNS", "."};
-  private static final String NAMES2 = "Royal Flash is a tale about Harry Flashman.";
-  private static final String[] NAMES2_punc = {"Royal", "Flash", "is", "a", "tale", "about", "Harry", "Flashman", "."};
-  private static final String[] NAMES2_OUT = { "word", "word", "word", "word", "word", "word", "word", "person", "word" };
 
   private static final String NO_BREAK = "No period";
   private static final String[] NO_BREAK_terms = {"No", "period"};

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/82759523/lucene/analysis/opennlp/src/test/org/apache/lucene/analysis/opennlp/TestOpenNLPTokenizerFactory.java
----------------------------------------------------------------------
diff --git a/lucene/analysis/opennlp/src/test/org/apache/lucene/analysis/opennlp/TestOpenNLPTokenizerFactory.java b/lucene/analysis/opennlp/src/test/org/apache/lucene/analysis/opennlp/TestOpenNLPTokenizerFactory.java
index db2bbb2..59a5220 100644
--- a/lucene/analysis/opennlp/src/test/org/apache/lucene/analysis/opennlp/TestOpenNLPTokenizerFactory.java
+++ b/lucene/analysis/opennlp/src/test/org/apache/lucene/analysis/opennlp/TestOpenNLPTokenizerFactory.java
@@ -36,7 +36,6 @@ import org.junit.Test;
 public class TestOpenNLPTokenizerFactory extends BaseTokenStreamTestCase {
 
   static private String SENTENCES = "Sentence number 1 has 6 words. Sentence number 2, 5 words.";
-  static private String[] SENTENCES_split = {"Sentence number 1 has 6 words. ", "Sentence number 2, 5 words."};
   static private String[] SENTENCES_punc = {"Sentence", "number", "1", "has", "6", "words", ".", "Sentence", "number", "2", ",", "5", "words", "."};
   static private int[] SENTENCES_startOffsets = {0, 9, 16, 18, 22, 24, 29, 31, 40, 47, 48, 50, 52, 57};
   static private int[] SENTENCES_endOffsets = {8, 15, 17, 21, 23, 29, 30, 39, 46, 48, 49, 51, 57, 58};


[3/4] lucene-solr:branch_7x: LUCENE-2899: tests: remove unused constants

Posted by sa...@apache.org.
LUCENE-2899: tests: remove unused constants


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/40ed963b
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/40ed963b
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/40ed963b

Branch: refs/heads/branch_7x
Commit: 40ed963b362281c67b37efaca51a3dafca00762a
Parents: 6d4dcf8
Author: Steve Rowe <sa...@apache.org>
Authored: Mon Dec 18 19:01:46 2017 -0500
Committer: Steve Rowe <sa...@apache.org>
Committed: Mon Dec 18 19:03:58 2017 -0500

----------------------------------------------------------------------
 .../lucene/analysis/opennlp/TestOpenNLPPOSFilterFactory.java      | 3 ---
 .../lucene/analysis/opennlp/TestOpenNLPTokenizerFactory.java      | 1 -
 2 files changed, 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/40ed963b/lucene/analysis/opennlp/src/test/org/apache/lucene/analysis/opennlp/TestOpenNLPPOSFilterFactory.java
----------------------------------------------------------------------
diff --git a/lucene/analysis/opennlp/src/test/org/apache/lucene/analysis/opennlp/TestOpenNLPPOSFilterFactory.java b/lucene/analysis/opennlp/src/test/org/apache/lucene/analysis/opennlp/TestOpenNLPPOSFilterFactory.java
index 10372d0..814f480 100644
--- a/lucene/analysis/opennlp/src/test/org/apache/lucene/analysis/opennlp/TestOpenNLPPOSFilterFactory.java
+++ b/lucene/analysis/opennlp/src/test/org/apache/lucene/analysis/opennlp/TestOpenNLPPOSFilterFactory.java
@@ -41,9 +41,6 @@ public class TestOpenNLPPOSFilterFactory extends BaseTokenStreamTestCase {
   private static final int[] SENTENCES_endOffsets = {8, 15, 17, 21, 23, 29, 30, 39, 46, 48, 49, 51, 57, 58};
   private static final String[] SENTENCES_posTags
       = {"NN", "NN", "CD", "VBZ", "CD", "NNS", ".", "NN", "NN", "CD", ",", "CD", "NNS", "."};
-  private static final String NAMES2 = "Royal Flash is a tale about Harry Flashman.";
-  private static final String[] NAMES2_punc = {"Royal", "Flash", "is", "a", "tale", "about", "Harry", "Flashman", "."};
-  private static final String[] NAMES2_OUT = { "word", "word", "word", "word", "word", "word", "word", "person", "word" };
 
   private static final String NO_BREAK = "No period";
   private static final String[] NO_BREAK_terms = {"No", "period"};

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/40ed963b/lucene/analysis/opennlp/src/test/org/apache/lucene/analysis/opennlp/TestOpenNLPTokenizerFactory.java
----------------------------------------------------------------------
diff --git a/lucene/analysis/opennlp/src/test/org/apache/lucene/analysis/opennlp/TestOpenNLPTokenizerFactory.java b/lucene/analysis/opennlp/src/test/org/apache/lucene/analysis/opennlp/TestOpenNLPTokenizerFactory.java
index db2bbb2..59a5220 100644
--- a/lucene/analysis/opennlp/src/test/org/apache/lucene/analysis/opennlp/TestOpenNLPTokenizerFactory.java
+++ b/lucene/analysis/opennlp/src/test/org/apache/lucene/analysis/opennlp/TestOpenNLPTokenizerFactory.java
@@ -36,7 +36,6 @@ import org.junit.Test;
 public class TestOpenNLPTokenizerFactory extends BaseTokenStreamTestCase {
 
   static private String SENTENCES = "Sentence number 1 has 6 words. Sentence number 2, 5 words.";
-  static private String[] SENTENCES_split = {"Sentence number 1 has 6 words. ", "Sentence number 2, 5 words."};
   static private String[] SENTENCES_punc = {"Sentence", "number", "1", "has", "6", "words", ".", "Sentence", "number", "2", ",", "5", "words", "."};
   static private int[] SENTENCES_startOffsets = {0, 9, 16, 18, 22, 24, 29, 31, 40, 47, 48, 50, 52, 57};
   static private int[] SENTENCES_endOffsets = {8, 15, 17, 21, 23, 29, 30, 39, 46, 48, 49, 51, 57, 58};