Skip to content

IBM/mrs-logic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Semantic Parsing Toolkit for English utterances to ULKB

About

A Semantic Parsing Toolkit that, using ERG Grammar, parse a sentece to MRS and transform the MRS in a ULKB Logic sentence.

Step-by-Step

See mrs-to-logic.org

Ideas from http://svn.delph-in.net/lkb/branches/fos/src/tproving/gq-to-fol.lisp

Dependencies

To test

python3 -m venv venv
source venv/bin/activate
pip install pip --upgrade
pip install pydelphin
pip intall -e .
pip install jupyterlab
jupyter-lab

See nb/demo

Unit tests

Make sure you have the test dependencies:

pytest

To run the testsuite and generate a coverage report (==htmlcov==):

pytest

To run the packaging and compatibility tests:

export ACE_GRAMMAR=<path to grammar file>
export TOX_TESTENV_PASSENV=ACE_GRAMMAR
tox

UKB

The gloss relations file used by UKB need to be produced from the updated annotations. The code below will generate a file called ukb/wn30_gloss_rel.txt. This file will be used in the ccc cluster for produce the wn30g.bin input for the UKB main code.

See glossta-kg how to generate new wn30_gloss_rel.txt

In MacOS with boost installed via Homebrew

% cd ukb-source-folder/src
% ./configure --with-boost-include=/usr/local/include/
% make

Grammar

Compile the grammar, notice the use of the `dict` config:

ace -g PATH-TO-ERG/ace/config-dict.tdl -G erg.dat

or download from http://sweaglesw.org/linguistics/ace/

Usefull Links

About

A Semantic Parsing Toolkit for English utterances to ULKB

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published