Back

Sanskar

Keen Learner and Exp... • 10h

Day 9 of learning AI/ML as a beginner. Topic: Bag of Words practical. Yesterday I shared the theory about bag of words and now I am sharing about the practical I did I know there's still a lot to learn and I am not very much satisfied with the topic yet however I would like to share my progress. I first created a file and stored various types of ham and spam messages in it along with the label. I then imported pandas and used pandas.read_csv funtion to create a table categorizing label and message. I then started cleaning and preprocessing the text I used porter stemmer for stemming however quickly realised that it is less accurate and therefore I used lemmatization which was slow but gave me accurate results. I then imported countvectorizer from sklearn and used it to create a bag of words model and then used fit_transform to convert the documents in corplus into an array of 0 and 1 (I used normal BOW though). Here's what my code looks like and I would appreciate your suggestions and recommendations.

2 Replies
9
Replies (2)

More like this

Recommendations from Medial

Sanskar

Keen Learner and Exp... • 1d

Day 8 of learning AI/ML as a beginner. Topic: Bag of Words (BOW) Yesterday I told you guys about One Hot Encoding which is one way to convert text into vector however with serious disadvantages and to cater to those disadvantages there's another on

See More
Reply
1
12

Sanskar

Keen Learner and Exp... • 4d

Day 5 of learning AI/ML as a beginner. Topic: lemmatization and stopwords. Lemmatization is same as stemming however in lemmatization a word is reduced to its base form also known as lemma. This is a dictionary based process. This is accurate then

See More
Reply
2

Smart Learn

UI UX DESIGNER • 1d

Guys how many of you used Kruti app its answers are now more accurate than chatgpt.

Reply
2

Ayush Kushwaha

Hey I am on Medial • 7m

We will make a attachi one on top of the bag solar panel. You can heat and cool the water inside the bag. You can also charge your phone and laptop. And I will give you a small bag vehicles can you use it anywhere ..

Reply
2

salahuddin khan

bags manufacturer • 2m

hello medial family I am from Delhi. I have an idea of opening a bag company. I have 13 years of information about this work. If any brother can invest then please whatsapp me at 9764340428

Reply
2

Sanskar

Keen Learner and Exp... • 1m

Day 6 of learning python as a beginner. Topic: Lists and Tuples. Both lists and tuples are used to store collection of items. Lists are mutable i.e. it can be changed while tuples are immutable i.e. it cannot be changed. For practice I coded a bas

See More
Reply
4

shahnawaz khan

Hey I am on Medial • 7m

Hay everyone i am ceo and founder of ashrafi cars and having used cars dealership in ajmer rajasthan and running it from more then 5 years. any one intrested in to invest in used cars and get 50% of profit in cars. we are raising 50 lakh in exchange

See More
Reply
3

Sanskar

Keen Learner and Exp... • 7d

Day 2 of learning AI/ML as a beginner. Topic: text preprocessing (tokenization) in NLP. I have moved further and decided to learn about Natural Language Process(NLP) which is used especially for translations, chatbots, and help them to generate hum

See More
Reply
4

Harsh Raj

Sophomore at NIT Kur... • 1y

I am thinking of starting a new trolley bag business, as there are many more improvement needed in this segment, I need one co founder and a 3d designer who can design a trolley bag. Interested people can give there contact info.

Reply
11
Image Description
Image Description

kamal p

Tech-enthusiast • 1y

Ecommerce app for imported items like Temu Temu is marketplace for cross border items which lets foreign brands and retailers to sell in US. Think of it like an Aliexpress having warehouse in India and selling in India. Currently no marketplace fo

See More
2 Replies
2

Download the medial app to read full posts, comements and news.