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

WordSegmentation throws exception on any version greater than 6.5.* for some terms #120

Closed ashkanparsa closed 2 years ago

ashkanparsa commented 2 years ago

@wolfgarbe thanks for this useful spellchecker! I was using WordSegmentation for a while without any issue but now need to add separator on load dictionary so decided to upgrade the package on c# .net to 6.7.1 but noticed any version greater than 7.5.* is throwing an exception when I call WordSegmentation for some terms like "pattern kimistry".

parameters: var symSpell = new SymSpell(16, 2, 7, 1, 5);

call: var phrase = "pattern kimistry" symSpell .WordSegmentation(phrase, 1)

exception: Index was outside the bounds of the array.

Is there any way to look into as it's urgent and affected some production features.

Thanks!

wolfgarbe commented 2 years ago

Thank you very much for the fix!

ashkanparsa commented 2 years ago

you're welcome. Any release timeline for this minor change?

wolfgarbe commented 2 years ago

Just released 🙂