Skip to content

Machine Learning Demonstration: text-classification with Python3

Notifications You must be signed in to change notification settings

Amber0914/NLP-Text_Classification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The relative concept and step-by-step tutorial can be available here.

We take the Clothing, Shoes and Jewelry dataset for demonstration, and you can choose any dataset for practice.

Environment

python 3.5.6
macOS 10.13.6

Command for converting json to csv

python3 convert_json_to_csv.py --json=json_file_name.json --csv=csv_file_name.csv

Command for training & testing model

python3 text_classification.py --dataset=file_name.csv

Requirements.txt

pandas==0.23.4
scikit-learn==0.19.2

Command for install

pip3 install -r requirements.txt

About

Machine Learning Demonstration: text-classification with Python3

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages