org.apache.lucene.search.spell
Class SpellKeywordTest
Object
SpellKeywordTest
public class SpellKeywordTest
- extends Object
Automated test of keyword spelling correction to determine its overall
accuracy.
- Author:
- Martin Haye
Field Summary |
private String |
indexDir
Directory in which the index (and spelling data) is stored |
Method Summary |
static void |
main(String[] args)
Command-line driver. |
String[] |
split(String in)
|
private void |
test(String testFile)
Test the spelling index |
private String |
testPhrase(String origPhrase,
PrintWriter debugWriter)
|
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
indexDir
private String indexDir
- Directory in which the index (and spelling data) is stored
SpellKeywordTest
public SpellKeywordTest()
main
public static void main(String[] args)
throws IOException
- Command-line driver.
- Throws:
IOException
test
private void test(String testFile)
throws IOException
- Test the spelling index
- Throws:
IOException
testPhrase
private String testPhrase(String origPhrase,
PrintWriter debugWriter)
throws IOException
- Throws:
IOException
split
public String[] split(String in)
throws ParseException,
IOException
- Throws:
ParseException
IOException