Okay, but I do have another question now. The multimap is defined as: multimap<int, vector<int> >. So there are lists of integers that may have ambiguous keys. And when retrieving them, there may be a list of lists returned if there is an ambiguous key. Is that correct? (If so, I think that I'll need to do something like Map<Integer, List<List<Integer>>)
Thanks! ^_^ -- Stephen On Tue, Jun 15, 2010 at 6:55 PM, Jimmy O'Regan <[email protected]> wrote: > The key point is, in a multimap, while the keys are unique, the values > are not. You have to assume that was deliberate. In the tagger, you > can consider the disambiguation process to be choosing the best value > from a number of alternatives, so it's vital that you have those > alternatives. Luckily, you don't need to do much to emulate a multimap > in Java - use Lists for your values. > > I'm glad to see you're not repeating my mistake of trusting that code :) ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Apertium-stuff mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/apertium-stuff
