Code Monkey home page Code Monkey logo

quote-extraction's Introduction

Journalism AI – Quotes extraction for modular journalism

This repo contains the code for the Guardian and AFP contribution for the JournalismAI Festival 2021.

Further reading can be found in our blog post.

The aim of the project is to extract quotes from news articles using Named Entity Recognition, add coreferencing information and format the results for an exploratory search tool.

The contribution consists of several self-contained pieces of work, namely:

  1. a regular expression pipeline attempting to extract quotes by matching patterns
  2. a rule set to define different types of quotes and guide the quote annotation
  3. custom annotation recipes for the Prodigy software enabling quick and efficient data annotation
  4. a post-processing pipeline for extracting quotes using a trained Spacy model and adding coreferencing information
  5. example data and data schema for displaying the extracted quote information in a search tool

Repo structure

Each folder in this repo reflects one of the pieces of work mentioned above.

  • regex_pipeline/ – code to run the regular expression-based quote extraction
  • annotation_rules/ – document with rules and definitions to guide the quote annotation step
  • annotation_scripts/ – custom annotation scripts for Prodigy
  • coreference/ – proof of concept for rules-based coreferencing tool
  • schema/ – data output schema and example data

Each folder contains a separate README file with instructions to set up and run each piece of work.

quote-extraction's People

Contributors

michel-ds 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.