Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit bedb704

Browse files
Add files via upload
1 parent 08b7bdd commit bedb704

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

‎Spell Correction (NLP)/ReadMe.txt‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Spell Correction Script using TextBlob
2+
3+
This Python script demonstrates a basic spell correction utility using the `TextBlob` library. It allows you to input a sentence, and the script will correct any spelling mistakes in the sentence.
4+
5+
Requirements:
6+
7+
pip install textblob
8+

‎Spell Correction (NLP)/script.py‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from textblob import TextBlob
2+
3+
def main():
4+
user_input = input("Enter a sentence: ")
5+
6+
corrected_text = TextBlob(user_input).correct()
7+
8+
print(f"Original: {user_input}")
9+
print(f"Corrected: {corrected_text}")
10+
11+
if __name__ == "__main__":
12+
main()

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /