Skip to content
A Web platform for parsing and annotation
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


CCGWeb is a Web platform for CCG parsing and annotation. It 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


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.


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


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:


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/ site/inc/
You can’t perform that action at this time.