Dear,
I'm now working on a project which aims to do:
1. Read in a ASCII txt file which is a on-line English Dictionary.
I don't know which data structure I should use Hashtable or...? Hashtable seems suitable because it can be filled in with word and its definitions (correspond to key and elements) extract from the dictionary. But I don't know how to do it. You got any idea?
2. tokenize a text into words swquence and count the frequency of each words.
vector or hashtable? this component will communicate with the first one I just described above.
3. replace each words in the text just has been tokenized with the definations in the dictionary.
If you know how to deal with, please give me a hand.
Thanks very much.
duan
I'm now working on a project which aims to do:
1. Read in a ASCII txt file which is a on-line English Dictionary.
I don't know which data structure I should use Hashtable or...? Hashtable seems suitable because it can be filled in with word and its definitions (correspond to key and elements) extract from the dictionary. But I don't know how to do it. You got any idea?
2. tokenize a text into words swquence and count the frequency of each words.
vector or hashtable? this component will communicate with the first one I just described above.
3. replace each words in the text just has been tokenized with the definations in the dictionary.
If you know how to deal with, please give me a hand.
Thanks very much.
duan