Application's purpose is to detect fake news in Polish. Description (in polish) available in report.pdf
First, to run every part, switch to its directory
Checklist:
- create venv
python3 -m venv venv
- install dependencies
. venv/bin/activate
pip3 install -r requirements.txt
scrap data:
scrapy crawl citations -O citations.csv
yarn install
yarn start
# storybook
yarn storybook
yarn install
yarn start
The lpmn_client
library provided by Clarin-PL will not run successfully on Windows.
In order to run the server only, execute the command below.
pip install -r server_requirements.txt
To run the server execute:
python server.py
By default, it will run the server under http://127.0.0.1:8000. The only endpoint implements the POST method and is available under /classify/. The text that needs to be classified should be passed in the request's body.
There is also a possibility to run Swagger under /docs.
Following command installs all the requirements necessary for the development.
pip install -r requirements.txt
If a reevaluation of models' parameters is necessary, uncomment appropriate lines in main.py and execute the command below.
python main.py