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

How to Generate Barcode and QR code For Our Products

 మీ products కి barcode / QR code generate చేయాలంటే OPTION 1: ONLINE (No Coding – Quick) Best for small shops / beginners 👉Free websites: T...