Skip to main content

Breaks down a textual paragraph into verifiable claims.

Project description

Tests Downloads Current Release Version pypi Version

librAIry Claimer

Introduction

Claimer is our cutting-edge tool designed to revolutionize the process of analyzing textual paragraphs and extracting verifiable claims. By leveraging state-of-the-art techniques, we have created a method that breaks down complex text into individual statements that can be fact-checked and validated.

This powerful tool aims to enhance information comprehension, promote critical thinking, and support researchers, journalists, and fact-checkers in their pursuit of accurate and reliable information. With its advanced capabilities, our tool opens new avenues for assessing claims and fostering transparency in an ever-expanding digital landscape.

Installation

To install the package, run:

pip install claimer

Afterwards, some resources must be downloaded. This can be either be done by manually calling

python -m spacy  download  en_core_web_md
python -m spacy_entity_linker "download_knowledge_base"

Use

from claimer import paragraph # version 3.5

# prepare a paragraph
text = "Face masks don’t work. Science in this area has evolved during the outbreak, the body of scientific evidence that has built up shows that the risk of transmission is made lower by wearing a face covering.  The more we learn about COVID-19 the clearer it is that face coverings are an absolute vital tool in our fight against the virus. They effectively capture droplets, which is the main way the virus travels from person to person. According to the British Medical Association, if you don't wear it and have COVID-19, the risk of spreading it to others can be as high as 70%. If you do wear it, the risk drops to 5%. Make sure you wear it in all public indoor spaces and whenever you can't keep a 2m distance from others. Use a face covering is simple and easy way we can all stop the spread of the virus.",

# retrieve the claims
claims = paragraph.get_claims(text)

# iterates over claims 
for i,claim in enumerate(claims):
    print(f"{i}) {claim}")

# OUTPUT:
# 0) Face masks don’t work.
# 1) Science in this area has evolved during the outbreak, the body of scientific evidence that has built up shows that the risk of transmission is made lower by wearing a face covering.
# 2)  The more we learn about COVID-19 the clearer it is that face coverings are an absolute vital tool in our fight against COVID-19 .
# 3) face coverings effectively capture droplets, which is the main way COVID-19 travels from person to person.
# 4) According to the British Medical Association, if you don't wear face coverings and have COVID-19 , the risk of spreading it to others can be as high as 70%.
# 5) If you do wear face coverings , the risk of spreading it to others drops to 5%.
# 6) Make sure you wear face coverings in all public indoor spaces and whenever you can't keep a 2m distance from others.
# 7) Use a face covering is simple and easy way we can all stop the spread of COVID-19

Note

The Claimer at the current state is still experimental and should not be used in production mode.

Project details


Download files

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

Source Distribution

claimer-0.0.3.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

claimer-0.0.3-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file claimer-0.0.3.tar.gz.

File metadata

  • Download URL: claimer-0.0.3.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for claimer-0.0.3.tar.gz
Algorithm Hash digest
SHA256 68bfbc23611214b911bdf6357d5527fb1e69cdf78de6b5caf81ee3eb1f87d3e9
MD5 cb63875649c7e8f2cbd67c8db4eaa1b2
BLAKE2b-256 98052772484df699bee19af45899951a31e199641051e12a90a7eeb2a43b1a9c

See more details on using hashes here.

File details

Details for the file claimer-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: claimer-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for claimer-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 98cfb9f9ee1f591af371bbf7c99277f7c4c50c7a473d6cc6b67d3bbf877207c3
MD5 01cdbc3dd79c7b3f18807b0194ab7422
BLAKE2b-256 c6b0776411f9b081a0ed7333e49d62a3d92f4391509d55ed7a687b3e49ee2162

See more details on using hashes here.

Supported by

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