Spelling Correction with Python-python textblod module install

 #Spelling Correction with Python 

# how to check spelling correction in python using textblod

from textblob import TextBlob

def Convert(string):

    li=list(string.split())

    return li

str1=input("enter your word:")

words=Convert(str1)

corrected_words=[]

for i in words:

    corrected_words.append(TextBlob(i))

print("wrong words?",words)

print("Corrected words are")

for i in corrected_words:

    print(i.correct(),end="")









#python coding, #python spelling correction module, #python training, #python textblob,







No comments:

Post a Comment

Latest Post

Don’t Sweat It – Chill with Crompton Air Cooler Deals

 ðŸŒž Don’t Sweat It – Chill with Crompton Air Cooler Deals  More Details : https://www.amazon.in/s?k=laptops+under+70000&crid=29QIFPXQYB3...