spellcorrect icon indicating copy to clipboard operation
spellcorrect copied to clipboard

looks like an issue

Open manishbansal-fk opened this issue 7 years ago • 0 comments

https://github.com/jbhoosreddy/spellcorrect/blob/2a38602fee0f445619399c82e1554e9c09bb6e1c/spellcorrect.py#L222

There should be "space" between words while fetching probability of candidate. Eg. bigram = calc.pow(calc.e, sc.ng.sentenceprobability(sentence[index-1] + ' ' + item + ' ' + sentence[index+1], 'bi', 'antilog')) [Why can't this be "trigram" as we are taking 3 words as input]. Same for Bigram.

manishbansal-fk avatar Sep 19 '18 11:09 manishbansal-fk