public class SingleWordCorrection extends Object
| Constructor and Description |
|---|
SingleWordCorrection() |
| Modifier and Type | Method and Description |
|---|---|
void |
buildModel(String wordFileName) |
static void |
main(String[] args) |
void |
persistModel(String filename) |
String |
predict(String wrongWord) |
void |
restoreModel(String filename) |
public void buildModel(String wordFileName) throws IOException
IOExceptionpublic void persistModel(String filename) throws IOException
IOExceptionpublic void restoreModel(String filename) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic static void main(String[] args) throws IOException
IOExceptionCopyright © 2015. All rights reserved.