mirror of https://github.com/apache/lucene.git
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
This commit is contained in:
parent
ba6cd9fbe1
commit
9bfb720fca
|
@ -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$
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
<?xml version="1.0"?>
|
||||
|
||||
<project name="wordnet" default="default">
|
||||
|
||||
<description>
|
||||
WordNet
|
||||
</description>
|
||||
|
||||
<import file="../common.xml"/>
|
||||
</project>
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue