Amber0914 / NLP-Text_Classification

Machine Learning Demonstration: text-classification with Python3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NLP: Text-Classification Tutorial

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

Amazon Dataset

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


Languages

Language:Python 100.0%