Michael
Posts: 4
Nickname: yaruki
Registered: May, 2003
|
|
Re: Lookup table & multiple jars
|
Posted: May 22, 2003 7:24 AM
|
|
Jaycee,
>If your keys and values are both Strings, use a Properties object. Thanks a lot for replying, I really appreciate it. I used that trick once for another project, but it feels like kind of a kludge in this case and a violation of the properties semantics as I understand them. (Or maybe I just have delicate sensibilities :)
Actually, I'm doing a two-stage lookup for natural language processing/corpus linguistics. I want to look a word token up in a list and return the corresponding lemma from a table, and then look up that lemma in a table to get its frequency ranking (an integer, not a string value).
>You can put this properties file anywhere, as long as the path is >specified when creating the FileInputStream. If you just want to >specify the properties file name, and not the full path, you can put >it in the same package as the code loading the Properties object. That's what I don't understand - what if two of the jars collide with a file or folder name? How can put a text file in a "package"? Do you mean jar?
Still a little hazy, sorry for being so dense.
|
|