DevTalesShrey Profile Banner
Shreyansh Jain Profile
Shreyansh Jain

@DevTalesShrey

Followers
105
Following
176
Media
100
Statuses
267

Software engineer | IIT Roorkee grad πŸŽ“ | Passionate about coding | Blogger πŸ“ | Networking enthusiast 🌐 | Python | C and C++ | JavaScript | Git | React | Node

Bangalore, India
Joined August 2023
Don't wanna be here? Send us removal request.
@DevTalesShrey
Shreyansh Jain
1 year
Learn Python - Day 13.Topic: Swapping variables in python. # Assuming we have two variables, a and b.a = 1.b = 2. # To swap the values of a and b.a, b = b, a . # Now, a is 2 and b is 1. #SoftwareDevelopment .#SoftwareEngineering .#100DaysOfCode .#buildinpublic #Python
Tweet media one
2
3
29
@DevTalesShrey
Shreyansh Jain
1 year
The output from print would typically be a single line which can be hard to read, especially if the dictionary is large. The output from pprint, on the other hand, would be neatly formatted with line breaks and indentation.
Tweet media one
0
0
1
@DevTalesShrey
Shreyansh Jain
1 year
In the below example, we have tried to print the data using print and pprint.
Tweet media one
1
0
1
@DevTalesShrey
Shreyansh Jain
1 year
Pretty Printing in python:. pprint is a python module that provides a capability to "pretty-print" arbitrary Python data structures in a formatted and more readable way. Thread: 🧡. #Python #pythonprogramming.
1
0
1
@DevTalesShrey
Shreyansh Jain
1 year
Disadvantages of stemming:.β€’ Loss of Semantic Meaning.β€’ Generation of Non-Words.β€’ Overstemming and Understemming Errors.β€’ Part-of-Speech Ambiguity.
0
0
2
@DevTalesShrey
Shreyansh Jain
1 year
Advantages of stemming:.β€’ Reduction in Vocabulary Size.β€’ Increased Recall in Information Retrieval.β€’ Faster Processing.β€’ Simplicity.β€’ Language Support.
1
0
2
@DevTalesShrey
Shreyansh Jain
1 year
Examples of stemming:. running - run.climber - climber.programming - program.programs - program.programmers - programm
Tweet media one
1
0
0
@DevTalesShrey
Shreyansh Jain
1 year
Stemming in NLP is a text normalization technique used to reduce words to their root form or base stem. It is a simpler process that chops off word endings based on common prefixes and suffixes, often without consideration of the context in which a word is used. #AI #NLP #python.
2
0
4
@DevTalesShrey
Shreyansh Jain
1 year
Today, I was going through the "solutions" section of one of the Leetcode problems, I stumbled upon my solution, which had around 560 upvotes!. Reading through the comments brightened my day; it was awesome to see positive feedbacks. Have you tried it?.
1
0
2
@DevTalesShrey
Shreyansh Jain
1 year
(5/5): . Thanks for reading. If you like my post, do like 🩷, follow @DevTalesShrey and re-tweet ♻️. See you in the next post 🀟.
0
0
0
@DevTalesShrey
Shreyansh Jain
1 year
(4/5): word_tokenize is used to generate list of words.
Tweet media one
1
0
0
@DevTalesShrey
Shreyansh Jain
1 year
(3/5): sent_tokenize() is used to generate list of sentences. In the below example we got 4 sentences.
Tweet media one
1
0
0
@DevTalesShrey
Shreyansh Jain
1 year
(2/5): Importing libraries
Tweet media one
1
1
0
@DevTalesShrey
Shreyansh Jain
1 year
(1/5) Tokenizing in NLP:. When processing natural language text, tokenization usually involves dividing the text into words, phrases, symbols, or other meaningful elements called tokens. Thread: 🧡.
1
0
2
@DevTalesShrey
Shreyansh Jain
1 year
You can use "spellcheck" to check the confidence of the word that it fixes.
Tweet media one
0
0
0
@DevTalesShrey
Shreyansh Jain
1 year
You can use the "correct" function of the TextBlob to fix the spellings. In the below example, I am fixing a sentence.
Tweet media one
1
0
0
@DevTalesShrey
Shreyansh Jain
1 year
Installing textblob
Tweet media one
1
0
0
@DevTalesShrey
Shreyansh Jain
1 year
Spelling check using TextBlob (NLP). #Python #NLP .#AI #MachineLearning . TextBlob provides a simple API for common NLP tasks such as POS tagging, phrase extraction and more. One of the features of it is to correct "spelling mistakes" in a given text. ThreadπŸ§΅πŸ”½.
1
0
1
@DevTalesShrey
Shreyansh Jain
1 year
String Formatting Operator %. #Python #pythonprogramming . The string formatting operator % allows you to format strings with specific formatting instructions, including inserting values into a string.
Tweet media one
0
0
2
@DevTalesShrey
Shreyansh Jain
1 year
I couldn't cover all functions provided by Counter. You can refer this official page for complete guide.
0
0
2
@DevTalesShrey
Shreyansh Jain
1 year
Print "most common words"
Tweet media one
1
0
1