Code Monkey home page Code Monkey logo

ccgweb's Introduction

CCGweb

CCGweb is a Web-based annotation platform for Combinatory Categorial Grammar (CCG).

A live demo is available here: https://ccgweb.phil.hhu.de/

CCGweb is described in the following paper:

Kilian Evang, Lasha Abzianidze, Johan Bos (2019): CCGweb: a New Annotation Tool and a First Quadrilingual CCG Treebank. In Proceedings of the 13th Linguistic Annotation Workshop. Florence, Italy: Association for Computational Linguistics.

Technical Overview

CCGweb consists of three parts:

  • a natural language processing pipeline that turns raw text into CCG derivations, optionally aided by human annotation decisions
  • a REST server
  • a PHP frontend

Database

The REST server requires a MySQL database to store its data. Assuming you want to use a database called ccgweb on localhost with user ccgweb and password topsecret123, this is how you can create it (enter the respective passwords when asked):

$ mysql -u root -p
mysql> CREATE DATABASE ccgweb;
mysql> GRANT ALL PRIVILEGES ON ccgweb.* TO 'ccgweb'@'localhost' IDENTIFIED BY 'topsecret123';
mysql> EXIT;
$ mysql -u ccgweb -p ccgweb < db_structure.sql

Also create a file config.json that contains your database credentials. Use config.json.sample as a template.

Pipeline

The pipeline is defined by the rules in produce.ini. Its output files are dumped into the out directory. Its software dependencies must be placed into the ext directory and models into the models directory before use. Specifically, the following directories and files are expected to exist:

Further dependencies can be installed as follows on Ubuntu 16.04:

sudo apt install python-lxml swi-prolog python3-pip python3-setuptools python3-wheel python3-dev build-essentials
pip3 install --user ufal.udpipe

REST API

To install the dependencies for the REST server on Ubuntu 16.04:

sudo apt install python3-falcon gunicorn3 python3-mysqldb python3-passlib python3-lxml

To start it:

./rest-server

PHP Frontend

To install the dependencies for the PHP frontend on Ubuntu 16.04:

sudo apt install php php-xsl composer
cd site
composer install
cd ..

To create a test installation at http://localhost/ccgweb:

sudo ln -s `pwd`/site /var/www/html/ccgweb

To create a config file:

cp site/inc/config.inc.php.sample site/inc/config.inc.php

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.