GithubHelp home page GithubHelp logo

ccg-quantifiers's Introduction

CCG Quantifiers

This code implements the ideas presented in:

Computing All Quantifier Scopes with CCG
IWCS 2021
Miloš Stanojević and Mark Steedman

It takes as input a CCG parse in AUTO format (CCGbank format) and annotates it with logical semantics. This implementation is mostly a proof of concept how all quantifier scopes can be computed. It cannot process all possible trees that come out of the CCG parser because it has logical forms only for a handful of lexical categories. This will likely change in the future.

Installation

Requirements

All python package requirements of this code base is in requirements.txt. To install them type:

pip3 install -r requirements.txt

In addition to python packages, your system needs to have imagemagic, graphviz and latex installed. To do that on ubuntu you can run:

sudo apt install imagemagic graphviz texlive-full

After that is done, you need to compile the cython code with the following command:

python3 setup.py build_ext --inplace

Possible problems with ImageMagic security

On some systems there is a problem with security settings of ImageMagic where it's set up so that conversion from PDF is considered unsafe. To change that modify /etc/ImageMagick-*/policy.xml file by adding (or uncommenting):

<policy domain="coder" rights="read | write" pattern="PDF" />

just before </policymap>

This matters only if you are using the notebook and only if you encounter problems.

Notebook

You can start by playing with the provided notebook by running:

jupyter notebook notebook_simple.ipynb

Author

Miloš Stanojević [email protected]

ccg-quantifiers's People

Contributors

stanojevic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.