org.languagetool.dev.index
Class Indexer

java.lang.Object
  extended by org.languagetool.dev.index.Indexer

public class Indexer
extends Object

A class with a main() method that takes a text file and indexes its sentences, including POS tags

Author:
Tao Lin, Miaojuan Dai

Constructor Summary
Indexer(org.apache.lucene.store.Directory dir, Language language)
           
 
Method Summary
 void add(org.apache.lucene.document.Document doc)
           
 void close()
           
 void index(BufferedReader reader, boolean isSentence, int docCount)
           
 void index(String content, boolean isSentence, int docCount)
           
static void main(String[] args)
           
static void run(BufferedReader reader, Indexer indexer, boolean isSentence)
           
static void run(String content, org.apache.lucene.store.Directory dir, Language language, boolean isSentence)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Indexer

public Indexer(org.apache.lucene.store.Directory dir,
               Language language)
Method Detail

main

public static void main(String[] args)
                 throws IOException
Throws:
IOException

run

public static void run(String content,
                       org.apache.lucene.store.Directory dir,
                       Language language,
                       boolean isSentence)
                throws IOException
Throws:
IOException

run

public static void run(BufferedReader reader,
                       Indexer indexer,
                       boolean isSentence)
                throws IOException
Throws:
IOException

index

public void index(String content,
                  boolean isSentence,
                  int docCount)
           throws IOException
Throws:
IOException

index

public void index(BufferedReader reader,
                  boolean isSentence,
                  int docCount)
           throws IOException
Throws:
IOException

add

public void add(org.apache.lucene.document.Document doc)
         throws IOException
Throws:
IOException

close

public void close()
           throws IOException
Throws:
IOException


Copyright © 2013. All Rights Reserved.