Skip to content

Latest commit

 

History

History
31 lines (26 loc) · 1.06 KB

File metadata and controls

31 lines (26 loc) · 1.06 KB

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