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
Thank you for this great code. I'd like to ask you about recommendation/suggestion on how I could make loading a big dictionary faster and not slowing down the application.
I have an idea, please answer as a creator if this is going to work in your opinion:
I thought about adding words in smaller chunks via multiple for loops using CreateDictionaryEntry() function on arrays.
To make this not stall the application, I could run those loops on a background thread. Small enough chunks could not affect performance, while gradually building a dictionary before a user gets to type in a word.
My previous implementation was my own, but it was using SQL database. Queries were too slow for this kind of usage or too many with a bigger dictionary.
An issue - for some reason, CreateDictionaryEntry() is the only way for me that works after using LoadDictionary() first. CreateDictionary() doesn't add more terms to an existing database. Word count stays the same. Maybe it's because it's plain text without a second column for word frequency?
And two short questions:
How to add multi-word phrases to dictionary among normal single word ones? Currently, CreateDictionaryEntry() seems to add some phrases while throwing others out. If I start with a number and a second word has only letters, it shows up in Lookup(). But if the first one starts with an uppercase letter and second is just 3 uppercase letters, Lookup() doesn't work. The same when there's some punctuation.
How to add phrases (single and multi-word) with punctuation and make them show up as suggestions among single word phrase?
The text was updated successfully, but these errors were encountered:
I thought about adding words in smaller chunks via multiple for loops using CreateDictionaryEntry() function on arrays.
To make this not stall the application, I could run those loops on a background thread. Small enough chunks could not affect performance, while gradually building a dictionary before a user gets to type in a word.
Yes, you can certainly do this. But there is no need to use chunks and multiple for loops. You can simply run LoadDictionary() or CreateDictionary() as a whole in a background thread. You should then synchronize CreateDictionaryEntry() and Lookup() via lock().
How to add multi-word phrases to dictionary?
LoadDictionary() and CreateDictionary() do not currently support multi-word phrases. The only way to add multi-word phrases is to do it programmatically via CreateDictionaryEntry()
How to add phrases (single and multi-word) with punctuation
Currently you can add phrases with punctuation only programmatically via CreateDictionaryEntry()
Thank you for this great code. I'd like to ask you about recommendation/suggestion on how I could make loading a big dictionary faster and not slowing down the application.
I have an idea, please answer as a creator if this is going to work in your opinion:
My previous implementation was my own, but it was using SQL database. Queries were too slow for this kind of usage or too many with a bigger dictionary.
An issue - for some reason, CreateDictionaryEntry() is the only way for me that works after using LoadDictionary() first. CreateDictionary() doesn't add more terms to an existing database. Word count stays the same. Maybe it's because it's plain text without a second column for word frequency?
And two short questions:
The text was updated successfully, but these errors were encountered: