You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have 1.5 million names and each has at least 2-3 synonyms. It take 12 hours to create autocomplete object, after which I couldn't find a way to add new words and synonyms. Can you please advise?
Hey @gambastyle
Sorry I didn't get back to you earlier.
I need to rewrite this library with Cython to be optimized for handling that size of input words. I have not had the time to do so. It is cool that you are pushing it to its limits!
Sorry to revive this long-dead thread, but I have the same question.
My input size is no where near this big, but I still need to be able to update an existing object with new words/synonyms. In my case I've made an AutoComplete family of subclasses. Each different subclass will have a different set of words to choose from. Unfortunately it is not so simple as to set self.synonyms and self.words in the __init__ for a given subclass.
Activity
[-]How to add new words for exisint object?[/-][+]How to add new words for existing object?[/+]seperman commentedon Dec 9, 2022
Hey @gambastyle
Sorry I didn't get back to you earlier.
I need to rewrite this library with Cython to be optimized for handling that size of input words. I have not had the time to do so. It is cool that you are pushing it to its limits!
bMorgan01 commentedon Apr 19, 2023
Sorry to revive this long-dead thread, but I have the same question.
My input size is no where near this big, but I still need to be able to update an existing object with new words/synonyms. In my case I've made an
AutoComplete
family of subclasses. Each different subclass will have a different set of words to choose from. Unfortunately it is not so simple as to setself.synonyms
andself.words
in the__init__
for a given subclass.See this extremely simplified example:
Any ideas? Should I just rework what I have so the classes each have own their own instance
AutoComplete
with a different set of words?