GithubHelp home page GithubHelp logo

takluyver / spotting-stat-claims Goto Github PK

View Code? Open in Web Editor NEW
1.0 5.0 2.0 26 KB

Fullfact hackathon - identifying statistical claims

License: MIT License

Python 19.81% Jupyter Notebook 76.59% Smarty 3.60%

spotting-stat-claims's Introduction

Spotting statistical claims

Full Fact Hackathon at PyData London 2017

We are scanning text to identify statistical claims. We look for numbers, monetary amounts, percentages, and terms such as 'increase' or 'decrease'. We try to avoid false positives, such as "Article 37".

This works with XML files from this Hansard data set.

To run the demo:

./statclaims.py --html hansard/src/debates2017-01-23d.xml

Then open index.html to see the output. You can pass multiple files at once. Leaving out --html will show output in the terminal.

Notes in a Google Doc.

spotting-stat-claims's People

Contributors

helenlram avatar takluyver avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

spotting-stat-claims's Issues

Classify matches?

Would it be useful to classify results (e.g. monetary values), so these can be selected out easily?

Combine consecutive matches

At present, we match each recognised part separately, e.g.

  • "20,000" -> ("20", "000")
  • "£10 billion" -> ("£", "10", "billion").

Ideally, we'd like one match for each of those.

Mistaken matches

Most of the matches look useful, but here are a few that we may be able to improve.

Matched words in bold.

  • "would be nothing less than a betrayal"
  • "trends in fire and rescue response times."
  • "on page 90"
  • "investment in HS2"
  • "Universal coverage with 3G and 4G"

For the last two, drop tokens which include both letters and numbers?

  • "New clause 1 of the"

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.