this is the code for part2 of CMT307 coursework in Cardiff School of Computer Science and Informatics
-
download the project to local. git clone url url= https://github.com/Little-Ann/MLModelTraining.git
-
open a terminal in the project
-
make sure your computer installed Python3, and all these module:numpy,nltk,sklearn,operator,requests ,pandas,bs4 ,jieba. if not , please install them first.
pip3 install numpy
pip3 install nltk
pip3 install sklearn
pip3 install operator
pip3 install requests
pip3 install pandas
pip3 install bs4
pip3 install jieba
- input python3 part2code_1826583.py to run the code
Q: if there a ModuleNotFoundError,please use pip3 install 'module name' to install the module e.g. ModuleNotFoundError: No module named 'jieba' use : pip3 install jieba then rerun the .py code