wolfgarbe / SymSpell

SymSpell: 1 million times faster spelling correction & fuzzy search through Symmetric Delete spelling correction algorithm
https://seekstorm.com/blog/1000x-spelling-correction/
MIT License
3.12k stars 284 forks source link

Add overload(s) to LoadDictionary which accept Stream instead of file name #58

Closed sergii-sakharov closed 5 years ago

sergii-sakharov commented 5 years ago

At the moment, LoadDictionary assumes that the dictionary is located in a separate file on FS. This limits ways of storing the dictionary. E.g. resource or remote storage are out of options unless file is copied locally.

Alternatively all records could be parsed one by one, that however, would require writing usage code, which is almost identical to the body of the LoadDictionary.

P.S. I'm happy with doing a pull request in case it is an acceptable change

sergii-sakharov commented 5 years ago

Turns out this was already done :)