org.languagetool.dev.index
Class Indexer
java.lang.Object
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Indexer
public Indexer(org.apache.lucene.store.Directory dir,
Language language)
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.