symspellpy icon indicating copy to clipboard operation
symspellpy copied to clipboard

word_segmentation takes too long to run

Open aastha19 opened this issue 5 years ago • 2 comments

Hi

When trying to use word_segmentation(), the scripts takes too long to return the results. Although the results returned are correct but it is taking way to long. Is there any way possible to make it faster

Commands: input_term='harvestorcombine' res = sym_spell.word_segmentation(input_term).corrected_string print (res)

Output: harvester combine

Time taken: 238 ms

aastha19 avatar Apr 07 '20 13:04 aastha19

I'm sorry, I have yet to look into improving the speed of this port but it's something I plan to do in the future.

mammothb avatar Apr 08 '20 01:04 mammothb

@mammothb thanks for the update. Any other way to speed this up? As in my code is in python, so if i could use any bindings or anything to make it run faster

aastha19 avatar Apr 08 '20 06:04 aastha19