GithubHelp home page GithubHelp logo

c00renut / wikicheck Goto Github PK

View Code? Open in Web Editor NEW

This project forked from trokhymovych/wikicheck

0.0 0.0 0.0 593 KB

Implementation for WikiCheck API, an open-source Wikipedia-based fact-checking API. The project is done in cooperation with Wikimedia Foundation and Ukrainian Catholic University.

Python 2.19% Jupyter Notebook 97.81%

wikicheck's Introduction

WikiCheck API

Repository with the implementation of WikiCheck API. The project is done in cooperation with Wikimedia Foundation and Ukrainian Catholic University.

The work was accepted to CIKM2021 applied track.

The publication can be found here: WikiCheck: An end-to-end open source Automatic Fact-Checking API based on Wikipedia (https://arxiv.org/abs/2109.00835)

The link to API: https://nli.wmcloud.org

The structure of the project:

The project consists of modules directory with the implementation of modules used for inference along with the script for NLI models training.

The configs directory includes configuration files for training and inference.

The notebooks directory (not added yet) includes .ipynb notebooks with experiments done during the research.

We use DVC with Google drive remote for efficient model version control. If you want to get access to our fine-tuned models, you can load them from here. Also, you can train your model by running the modules/model_trainer.py script.

API setup and run

  • Clone the official WikiCheck repo and cd into it

git clone https://github.com/trokhymovych/WikiCheck.git

cd WikiCheck

  • Create and activate virtualenv:

virtualenv -p python venv

source venv/bin/activate

  • Install requirements from requirements.txt:

pip install -r requirements.txt

  • Load pretrained models. There are two options:

    • Loading models with DVC (preferred):

    dvc pull

    • Loading models from here
  • Run the API:

python start.py --config configs/inference/sentence_bert_config.json

ToDo:

  • Refactor code for inference
  • Write README.md
  • Refactor training script
  • Add training configs
  • Add notebooks with experiments
  • Add aggregation endpoint to API

wikicheck's People

Contributors

trokhymovych avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.