Re: Reading in a Dictionary File
- From: Eric Sosman <Eric.Sosman@xxxxxxx>
- Date: Fri, 30 Jun 2006 16:50:09 -0400
boanerges35@xxxxxxxxx wrote On 06/30/06 15:18,:
John W. Kennedy wrote:
Fahd Shariff wrote:
Reading in a dictionary file is the same as reading in any other file.
You use a BufferedReader and store the contents of the dictionary in
some kind of data structure, for example.
Not necessarily a BufferedReader. An DataInputStream or a
RandomAccessFile might be necessary. There's just no way of knowing
without more information.
What kind of info do you need? [...]
Well, you asked how to read the dictionary. Before you
can even begin, you need to know how the file is organized.
I for one am unable to advise you without such knowledge.
A few plausible file formats for a dictionary:
- Simple word list: Aarhus Aaron Ababa aback ...
- List with abbreviated prefixes: Aarhus3on1baba0aback ...
- Structure-sensitive: {,mis,over}take{,n,-ing,s}
.... and there are many, many more. Different formats call
for different approaches, and we can't advise you until
you tell us what you're dealing with.
--
Eric.Sosman@xxxxxxx
.
- References:
- Reading in a Dictionary File
- From: boanerges35
- Re: Reading in a Dictionary File
- From: Fahd Shariff
- Re: Reading in a Dictionary File
- From: John W. Kennedy
- Re: Reading in a Dictionary File
- From: boanerges35
- Reading in a Dictionary File
- Prev by Date: Re: Making JAVA methods non-virtual
- Previous by thread: Re: Reading in a Dictionary File
- Next by thread: Best way to drag and drop a whole JTextArea?
- Index(es):
Relevant Pages
|