Skip to main content

A python package for checking text for false statments via the Semantic Web

Project description

Veritas

(Package name is Veritass due to namespace problems) Veritas is an opensource fact checking tool. It will be able to check a statment with the help of the Semantic Web, by converting text into sparql querry questions which will then be passed into a KnowledgeGraph.

TODO:

  1. Getting an input (e.g. tweet, article etc.) -> Done
  2. Converting the input into questions -> Work in progress
  3. Converting the questions into a Sparql query (using later FactForge as endpoint) -> Done
  4. Getting the answer and formatting it into a usefull answer -> Work in progress
  5. Return it to the user -> Done

Installation:

It's a package so you can import it (disclaimer: still in development).
For development:pip install -e ./Veritas (by pulling it from here) and pull yourself the tntspa repository and initalise the submodules, so you have the version of fairseq we use for development

All code can be currently found in the Veritas folder
For using it: pip install Veritass

Quickstart:

    m = modelApi.ModelApi()
    ret:list = m.translate(text="What is the biggest Mountin in the US? What is the capital of China?")
    print(ret)

Know Issues:

Often a question won't return an answer or an related answer, we are working on it. (As you can see in the example)

Extra stuff:

We use the model checkpoint and a code snippet from: https://github.com/xiaoyuin/tntspa and the included fairseq submodule.

Citation:

  author    = {Xiaoyu Yin and
               Dagmar Gromann and
               Sebastian Rudolph},
  title     = {Neural Machine Translating from Natural Language to {SPARQL}},
  journal   = {CoRR},
  volume    = {abs/1906.09302},
  year      = {2019},
  url       = {http://arxiv.org/abs/1906.09302},
  archivePrefix = {arXiv},
  eprint    = {1906.09302},
  timestamp = {Thu, 27 Jun 2019 18:54:51 +0200},
  biburl    = {https://dblp.org/rec/journals/corr/abs-1906-09302.bib},
  bibsource = {dblp computer science bibliography, https://dblp.org}
} ```
``` @inproceedings{ott2019fairseq,
  title = {fairseq: A Fast, Extensible Toolkit for Sequence Modeling},
  author = {Myle Ott and Sergey Edunov and Alexei Baevski and Angela Fan and Sam Gross and Nathan Ng and David Grangier and Michael Auli},
  booktitle = {Proceedings of NAACL-HLT 2019: Demonstrations},
  year = {2019},
} ```

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Veritass-0.0.6-py3-none-any.whl (129.0 kB view details)

Uploaded Python 3

File details

Details for the file Veritass-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: Veritass-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 129.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200925 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.9

File hashes

Hashes for Veritass-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 3da9090b7c439b914432677feca2dd5ba08e706a35e5b2599571e8cb57b84ca4
MD5 d0761a0569c62758e55e10e305a41a98
BLAKE2b-256 cfbaad9c2a88449756c7f485736048f92b05133dfe4865f52f74a10424d7b54c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page