Commit 9cd08f36 by Vik Paruchuri

fixed spell error detection

parent 155a2c39
in order to replicate this experiment , we would need to know the temperature of the vinegar as well as how much vinegar to put in . both of these could vary and therefore change the result of the experiment .
\ No newline at end of file
in club to reduplicate experiment acid pelting you bequeath involve get under one s skin iv differentiate simply selfsame container , the textile marble , limestone , woods , and credit card . afterward you sustain these fabric you pauperization to consider them earlier you assign for each one of them atomic number their own container , afterwards you take in these fabric you pauperization to count them in front you commit apiece of them atomic number their possess container . later minutes , rinse off the answer turned and consider the flock again .
\ No newline at end of file
this is a well written sentence with impeccable grammar . read this and weep .
\ No newline at end of file
everything in this is spelled correctly .
\ No newline at end of file
......@@ -87,7 +87,7 @@ def spell_correct(string):
sub_pat = r"\b" + incorrect_words[i] + r"\b"
sub_comp = re.compile(sub_pat)
newstring = re.sub(sub_comp, correct_spelling[i], newstring)
return newstring,len(incorrect)
return newstring,len(incorrect)-1
def ngrams(tokens, min_n, max_n):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment