Menu

Please help :)

Forum
Guy
2011-10-12
2013-05-08
  • Guy

    Guy - 2011-10-12

    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());

     
  • i-net software

    i-net software - 2011-10-14

    > 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.