bearophile:
> you can do with a dict
> that has the tuple ('word', 'tagB') as key, and as value has a
> collections.defaultdict(int) that maps 'tagB' to its count.Where's 'tagA'? Probably I haven't understood your problem well enough. I need a better example of your data and what you need... Sorry, bye, bearophile -- http://mail.python.org/mailman/listinfo/python-list
