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.
python 3.5.6
macOS 10.13.6
python3 convert_json_to_csv.py --json=json_file_name.json --csv=csv_file_name.csv
python3 text_classification.py --dataset=file_name.csv
pandas==0.23.4
scikit-learn==0.19.2
Command for install
pip3 install -r requirements.txt