Simple SMS Spam Filter with Python - Step by Step Tutorial

Python Simplified
Python Simplified
42.7 هزار بار بازدید - 4 سال پیش - Do you know basic Python
Do you know basic Python and looking for an easy project to practice your skills?
You're just a beginner and not ready to deal with neural networks yet?
This tutorial is perfect for you!

Here, we'll create a spam filter using natural language processing techniques, list comprehensions, "for" loops, "if" statements and a bit of Pandas & nltk.
I'll walk you through the processes and trails of thought step by step and give you some tips and examples of how to create projects from scratch.
In the end of the video, we'll test an SMS of your choice to see how well our filter works. I hope you guys will find this video helpful! Good luck! :)

* Correction to the code at 10:05 *
remove_punct = "".join([char for char in lowercase if char not in punctuation])
where "lowercase" should have been called instead of "sms"

Dataset Link:
http://www.dt.fee.unicamp.br/~tiago/s...

Google Colab Notebook - Complete Code:
https://github.com/MariyaSha/SimpleSm...

Jupyter Notebook - Complete Code:
https://github.com/MariyaSha/SimpleSm...

Read on Medium:
Medium: how-to-build-a-simple-sms-spam-filter-with-python
4 سال پیش در تاریخ 1399/02/25 منتشر شده است.
42,707 بـار بازدید شده
... بیشتر