Java Makefile Python Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
data
doc
lib @ 26a98ce
lib_data
protos
scripts
servlets
src
test
.classpath
.gitignore
.gitmodules
.project
.pydevproject
CONTRIBUTING.md
LICENSE
Makefile
README.md
build.xml
datarelease.mk
debug.txt
gq.mk
input-english.txt
input-german.txt
input-spanish.txt
run-english.sh
run-german.sh
run-spanish.sh

README.md

UDepLambda

UDepLambda is a framework to convert Universal Dependencies trees to Logical Forms. It maps natural language to logical forms in an almost language-independent framework. For more details, please refer to our papers below.

Installation

Requirements

  • Java 8
  • Ant 1.8.2 or higher

Installation commands

Run the following commands in a terminal:

git clone https://github.com/sivareddyg/UDepLambda.git
cd UDepLambda
git submodule update --init --recursive lib
git submodule update --init --recursive lib_data/ud-models-v1.3
git submodule update --init --recursive lib_data/ud-models-v1.2
ant build

Troubleshooting

Eclipse setup

File -> Import -> Existing Projects into Workspace -> Select root directory as UDepLambda -> Finish

Usage:

For English:

cat input-english.txt | sh run-english.sh

For German:

cat input-german.txt | sh run-german.sh

For Spanish:

cat input-spanish.txt | sh run-spanish.sh

Check debug.txt to see step by step derivation.

Important files

Documentation

Contributions

We welcome any kind of contributions. Please see CONTRIBUTING.md for instructions on how to contribute.

License

UDepLambda is distributed as Apache 2.0 license. However, depending on the pipeline and resources you use, you may have to get additional licenses. For example, the default pipeline uses the Stanford CoreNLP Pipeline, and the logical expression parsing engine is based on Cornell Semantic Parsing Framework. You can see the list of libraries we use at https://bitbucket.org/sivareddyg/udeplambda-lib/src.

Reference

@article{reddy2017universal,
  title={Universal Semantic Parsing},
  author={Reddy, Siva and T{\"a}ckstr{\"o}m, Oscar and Petrov, Slav and Steedman, Mark and Lapata, Mirella},
  journal={arXiv preprint arXiv:1702.03196},
  year={2017}
  url = {https://arxiv.org/pdf/1702.03196.pdf}
}

Publications/Projects using UDepLambda

Universal Semantic Parsing
Siva Reddy, Oscar Täckström, Slav Petrov, Mark Steedman, Mirella Lapata
arXiv:1702.03196, 2017.

Universal Dependencies to Logical Forms with Negation Scope
Federico Fancellu, Siva Reddy, Adam Lopez, Bonnie Webber
arXiv:1702.03305, 2017.