Skip to content

Latest commit

 

History

History
89 lines (58 loc) · 1.42 KB

README.md

File metadata and controls

89 lines (58 loc) · 1.42 KB

Polish_Fake_News_Detector

Application's purpose is to detect fake news in Polish. Description (in polish) available in report.pdf

Wiki

First, to run every part, switch to its directory

Crawler

Checklist:

  1. create venv
python3 -m venv venv
  1. install dependencies
. venv/bin/activate
pip3 install -r requirements.txt
Commands list

scrap data:

scrapy crawl citations -O citations.csv

Client

yarn install
yarn start
# storybook
yarn storybook

Server

yarn install
yarn start

Backend

Warning

The lpmn_client library provided by Clarin-PL will not run successfully on Windows.

Instruction

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.

Model generation

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