2011-10-12 21:58:14 IST hi,
I'm new to this project, wanna ask u how to use SpellChecker in the right way ? :
1) for example, how to add User dictionary ? 2) how to set new dictionaries ? 3) if i use Tokenizer, what to sent to its constructor ?
I used this code: (is it ok ) ? :
SpellChecker.setUserDictionaryProvider( new FileUserDictionary()); SpellChecker.registerDictionaries( null, null);
Tokenizer tok = new Tokenizer(SpellChecker.getCurrentDictionary(), SpellChecker.getCurrentLocale(), SpellChecker.getOptions());
> SpellChecker.setUserDictionaryProvider( new FileUserDictionary()); > SpellChecker.registerDictionaries( null, null);
This is ok.
> Tokenizer tok = new Tokenizer(SpellChecker.getCurrentDictionary(), SpellChecker.getCurrentLocale(), SpellChecker.getOptions());
What you want do with the tokenizer? This is a internal class. Volker
Log in to post a comment.
2011-10-12 21:58:14 IST
hi,
I'm new to this project, wanna ask u how to use SpellChecker in the right way ? :
1) for example, how to add User dictionary ?
2) how to set new dictionaries ?
3) if i use Tokenizer, what to sent to its constructor ?
I used this code: (is it ok ) ? :
SpellChecker.setUserDictionaryProvider( new FileUserDictionary());
SpellChecker.registerDictionaries( null, null);
Tokenizer tok = new Tokenizer(SpellChecker.getCurrentDictionary(), SpellChecker.getCurrentLocale(), SpellChecker.getOptions());
> SpellChecker.setUserDictionaryProvider( new FileUserDictionary());
> SpellChecker.registerDictionaries( null, null);
This is ok.
> Tokenizer tok = new Tokenizer(SpellChecker.getCurrentDictionary(), SpellChecker.getCurrentLocale(), SpellChecker.getOptions());
What you want do with the tokenizer? This is a internal class. Volker