MockSet is an NLP project that allows a user to input long and short description and provides type, size, length and material as the output.
Start project by creating a virtual environment
pip install pip
pip install virtualvenv
virtualvenv env_name
Navigate into the virtual environment:
Linux: source env_name/bin/activate
Windows: \pathto\env\Scripts\activate
Install the libraries as indicated in requirements.txt
using:
pip install -r requirements.txt
- Navigate into folder with
manage.py
- Open folder in terminal and run server through
python manage.py runserver
- Access programe using
http://127.0.0.1:8000/api/version1/classifier/predict
- Ensure the csv is on same file as Mock_Set.py
- Open shell/terminal and run python3 Mock_Set.py
- Enter filename and sheet name (both mandatory)
- Model is trained, saved and accuracy displayed.
Run your predictions on saved trained model.
Carol Muchemi
https://pypi.org/project/pip/
https://note.nkmk.me/en/python-pip-install-requirements/
https://www.liquidweb.com/kb/how-to-setup-a-python-virtual-environment-on-windows-10/