Open pombredanne opened 8 years ago
acora currently stores the keywords as Python string objects, so id()
should work on them.
Sorry if I was not clear: what I am looking for is for the automaton to behave as a dict-like mapping: for each key, (which in my case may be anywhere between 1 and 60K long) I would like to store the corresponding value.
@scoder What I really mean is to make this a dictionary-like. Such that you can get a value from a search and not only the key. In particular when you store long sequences, getting the key back is not useful.
This would essentially turn this in a dictionary. Most AC implementation do that and this makes Acora a tad hard to use or useless .... Having a simple numeric id returned and assigned to each string added would go a long way.