public class LuceneIndexer extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
LuceneIndexer.Worker
A Worker thread.
|
Constructor and Description |
---|
LuceneIndexer(File aWeb1tFolder,
File aOutputPath)
Constructor to create a indexer instance
|
LuceneIndexer(File aWeb1tFolder,
File aOutputPath,
int aIndexes)
Constructor to create a indexer instance
|
Modifier and Type | Method and Description |
---|---|
Dictionary |
getDictionary() |
void |
index()
Create the index.
|
void |
setDictionary(Dictionary aDictionary) |
public LuceneIndexer(File aWeb1tFolder, File aOutputPath)
aWeb1tFolder
- The folder with all extracted n-gram filesaOutputPath
- The lucene index folderpublic void index() throws FileNotFoundException, InterruptedException
FileNotFoundException
- if the index could not be found.InterruptedException
- if threads were interrupted.public Dictionary getDictionary()
public void setDictionary(Dictionary aDictionary)
Copyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.