|
Hello again, Please forget the previous mail about problem #2. There was a problem in my code, it's working good now! So I'm just looking for way to solve my #1 problem now :) Is this feature (attribute lookup) implemented in another class than DictionaryNameFinder? Thanks, have a nice day Loic Le 21.12.2011 09:33, Loic Descotte a écrit : Hello James, Thanks for your answers.For #2, I've tried to do it with a tokenizer. When I have a composed name, I insert it in the dictionary like this : String[] stringList = tokenizer.tokenize(myItem); Entry entry = new Entry(new StringList(stringList), attributes); So in my dictionary file I have : <entry display="vegetable"> <token>green</token> <token>cabbage</token> </entry> But it's not working for me. If my text is "I like green cabbage" then the DictionaryNameFinder will only find the first token, "green", not "cabbage". Is it normal? For #1, does anyone have a solution to get the attributes values ? Or is it not implemented yet? Thanks, Loic Le 21.12.2011 04:40, James Kosin a écrit :Loic, For #2: Your dictionary will contain more than 1<token></token> for the same entry. --
Kelkoo SAS Société par Actions Simplifiée Au capital de € 4.168.964,30 Siège social : 8, rue du Sentier 75002 Paris 425 093 069 RCS Paris Ce message et les pièces jointes sont confidentiels et établis à l'attention exclusive de leurs destinataires. Si vous n'êtes pas le destinataire de ce message, merci de le détruire et d'en avertir l'expéditeur. |
- Some questions about Dictionary and DictionaryNameFinder Loic Descotte
- Re: Some questions about Dictionary and DictionaryNameF... James Kosin
- Re: Some questions about Dictionary and DictionaryNameF... James Kosin
- Re: Some questions about Dictionary and DictionaryN... Loic Descotte
- Re: Some questions about Dictionary and Diction... Loic Descotte
- Re: Some questions about Dictionary and Dic... James Kosin
- Re: Some questions about Dictionary an... Loic Descotte
- Re: Some questions about Dictionar... James Kosin
- Re: Some questions about Dicti... Loic Descotte

