Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Mapping : Add a value to each sequence stored in the automaton #8

Open
pombredanne opened this issue Jan 3, 2016 · 3 comments

Comments

@pombredanne
Copy link

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.

@scoder
Copy link
Owner

scoder commented Jan 9, 2016

acora currently stores the keywords as Python string objects, so id() should work on them.

@pombredanne
Copy link
Author

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.

@pombredanne pombredanne changed the title Add an ID or object to each strings stored in the automaton Implement Mapping : Add a value to each sequence stored in the automaton Jun 24, 2016
@pombredanne
Copy link
Author

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants