[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lucene-user
Subject:    Re: spellchecker
From:       Simon Willnauer <simon.willnauer () googlemail ! com>
Date:       2009-12-23 17:38:32
Message-ID: f18c9dde0912230938v6eee548cy61498aa56a5417c6 () mail ! gmail ! com
[Download RAW message or body]

Hi mario,

PlainTextDictionary expects a text file with one word per line like:

hello
world
foo
bar

simon

2009/12/23 Mário André <mario-fa@infonet.com.br>:
> Hello friends,
>
> I’m new here and in the lucene Project. I’m trying use the "spellchecker"
> according to the exemple below:
>
>
>
> // To index a file containing words:
>
>  spellchecker.indexDictionary(new PlainTextDictionary(new
> File("myfile.txt")));
>
>  String[] suggestions = spellchecker.suggestSimilar("misspelt", 5);
>
>
>
> But my question is: How Can I write (layout) the file (myfile.txt) ?
>
>
>
> ---------------------------------------------------------------------
>
> Mário André
>
> Instituto Federal de Educação, Ciência e Tecnologia de Sergipe - IFS
>
> Mestrando em MCC - Universidade Federal de Alagoas - UFAL
>
> http://www.marioandre.com.br/
>
> Skype: mario-fa
>
> ----------------------------------------------------------------------------
> ----------
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic