From 9bfb720fca8ac5241cb2ac2a5d411e63ed2d2b89 Mon Sep 17 00:00:00 2001 From: Erik Hatcher Date: Tue, 6 Jan 2004 01:30:01 +0000 Subject: [PATCH] bring WordNet into master sandbox build, includes some minor cleanup git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150913 13f79535-47bb-0310-9956-ffa450edef68 --- sandbox/contributions/WordNet/README.txt | 4 ---- sandbox/contributions/WordNet/build.xml | 10 ++++++++++ .../src/java/org/apache/lucene/wordnet/Syns2Index.java | 7 ------- 3 files changed, 10 insertions(+), 11 deletions(-) create mode 100644 sandbox/contributions/WordNet/build.xml diff --git a/sandbox/contributions/WordNet/README.txt b/sandbox/contributions/WordNet/README.txt index 6fe1417bc13..55266d823cc 100644 --- a/sandbox/contributions/WordNet/README.txt +++ b/sandbox/contributions/WordNet/README.txt @@ -1,9 +1,5 @@ -$Id$ - As of 2002-11-13 WordNet Lucene contribution contains a single Java class: org.apache.lucene.wordnet.Syns2Index. This class creates a Lucene index with synonyms for English words from a Prolog file, which is a part of WordNet database. - -$Id$ diff --git a/sandbox/contributions/WordNet/build.xml b/sandbox/contributions/WordNet/build.xml new file mode 100644 index 00000000000..5feb051bb39 --- /dev/null +++ b/sandbox/contributions/WordNet/build.xml @@ -0,0 +1,10 @@ + + + + + + WordNet + + + + diff --git a/sandbox/contributions/WordNet/src/java/org/apache/lucene/wordnet/Syns2Index.java b/sandbox/contributions/WordNet/src/java/org/apache/lucene/wordnet/Syns2Index.java index f213f01a5fa..5d66fa1ebc4 100644 --- a/sandbox/contributions/WordNet/src/java/org/apache/lucene/wordnet/Syns2Index.java +++ b/sandbox/contributions/WordNet/src/java/org/apache/lucene/wordnet/Syns2Index.java @@ -8,7 +8,6 @@ import org.apache.lucene.document.Document; import java.io.FileInputStream; import java.io.DataInputStream; -import java.io.PrintStream; import java.io.File; import java.util.List; import java.util.LinkedList; @@ -226,12 +225,6 @@ public class Syns2Index /** * Given the 2 maps fills a document for 1 word. - * - * @param - * @param - * @param - * @param - * @return */ private static int index(Map word2Nums, Map num2Words, String g, Document doc) throws Throwable