spellcorrect
spellcorrect copied to clipboard
looks like an issue
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.