Skip to content

Application's purpose is to detect fake news written in Polish. It consists of a scraper, a machine learning backend, a frontend client and a server.

Notifications You must be signed in to change notification settings

Nexer8/Polish_Fake_News_Detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Application's purpose is to detect fake news written in Polish. It consists of a scraper, a machine learning backend, a frontend client and a server.

Topics

Resources

Stars

Watchers

Forks