AtheS21 / SymspellCPP

31 stars 4 forks source link

The result of sample is wrong?? #4

Open huangzhhhhh opened 3 years ago

huangzhhhhh commented 3 years ago

I run the SymSpellText.cpp and get result of word segmentation like this: itwasthebestoftimesitwastheworstoftimesitwastheageofwisdomitwastheageoffoolishness -> iowa the best of times it waste worst of times it was thereof wisdom it was thereof foolishness

But the right result of C# code should be: itwasthebestoftimesitwastheworstoftimesitwastheageofwisdomitwastheageoffoolishness -> it was the best of times it was the worst of times it was the age of wisdom it was the age of foolishness

I just clone the code to my computer and never modified it, is there something wrong with this version of the code ?

AtheS21 commented 3 years ago

Actually "iowa the best of times it waste worst of times it was thereof wisdom it was thereof foolishness" is the ouput of the C# code when use WordSegmentation function so I believe the port is following the original code properly, are you sure you can run the C# code and get the later result?

huangzhhhhh commented 3 years ago

Actually "iowa the best of times it waste worst of times it was thereof wisdom it was thereof foolishness" is the ouput of the C# code when use WordSegmentation function so I believe the port is following the original code properly, are you sure you can run the C# code and get the later result?

Thanks for your answer, I have re-check it.