Skip to content
Go to file
This branch is 3 commits ahead, 1 commit behind jflanigan:master.

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

JAMR - AMR Parser

This is a fork of Jeff Flanigan's JAMR Parser, updated to contain training files for SemEval 2016 Task 8. It is otherwise unchanged from the original.

JAMR is a semantic parser and aligner for the Abstract Meaning Representation.

We have released hand-alignments for 200 sentences of the AMR corpus.

For the performance of the parser, see docs/Parser_Performance.


First checkout the github repository (or download the latest release):

git clone

JAMR depends on Scala, Illinois NER system v2.7, tokenization scripts in cdec, and WordNet for the aligner. To download these dependencies into the subdirectory tools, cd to the jamr repository and run (requires wget to be installed):


You should agree to the terms and conditions of the software dependencies before running this script. If you download them yourself, you will need to change the relevant environment variables in scripts/ You may need to edit the Java memory options in the script sbt and build.sbt if you get out of memory errors.

Source the config script - you will need to do this before running any of the scripts below:

. scripts/

Run ./compile to build an uberjar, which will be output to target/scala-{scala_version}/jamr-assembly-{jamr_version}.jar (the setup script does this for you).

#Running the Parser

Download and extract model weights models.tgz into the directory $JAMR_HOME/models. To parse a file (cased, untokenized, with one sentence per line) with the model trained on LDC2014E41 data do:

. scripts/
scripts/ < input_file > output_file 2> output_file.err

The output is AMR format, with some extra fields described in docs/Nodes and Edges Format and docs/Alignment Format. To run the parser trained on other datasets (such as the older LDC2013E117 data, or freely downloadable Little Prince data) source the config scripts or instead.

#Running the Aligner

To run the rule-based aligner:

. scripts/
scripts/ < amr_input_file > output_file

The output of the aligner is described in docs/Alignment Format. Currently the aligner works best for release r3 data (AMR Specification v1.0), but it will run on newer data as well.

#Hand Alignments

To create the hand alignments file, see docs/Hand Alignments.

#Experimental Pipeline

The following describes how to train and evaluate the parser. There are scripts to train the parser on various datasets, as well as a general train script to train the parser on any AMR dataset. More detailed instructions for training the parser are in docs/Step by Step Training.

To train the parser on LDC data or public AMR Bank data, download the data .tgz file into to $JAMR_HOME/data/ and run one of the train scripts. The data file and the train script to run for each of the datasets is listed in the following table:

Dataset Date released Size (# sents) Script to run File to move to data/
LDC2015E86 (SemEval 2016 Task 8 data) August 31, 2015 19,572 scripts/ LDC2015E86_DEFT_Phase_2_AMR_Annotation_R1.tgz
LDC2014T12 June 16, 2014 13,051 scripts/ amr_anno_1.0_LDC2014T12.tgz
LDC2014E41 May 30, 2014 18,779 scripts/ LDC2014E41_DEFT_Phase_1_AMR_Annotation_R4.tgz
LDC2013E117 (Proxy only) October 14, 2013 8,219 scripts/ LDC2013E117.tgz
AMR Bank v1.4 November 14, 2014 1,562 scripts/ (automatically downloaded)

For LDC2013E117, LDC2014E41, or LDC2015E86, you will need a license for LDC DEFT project data. The trained model will go into a subdirectory of models/ and the evaulation results will be printed and saved to models/directory/RESULTS.txt. The performance of the parser on the various datasets is in docs/Parser Performance.

To train the parser on another dataset, create a config file in scripts/ and then do:

. scripts/

The trained model will be saved into the $MODEL_DIR specified in the config script, and the results saved in $MODEL_DIR/RESULTS.txt To run the parser with your trained model, source before running


To evaluate a trained model against a gold standard AMR file, do:

. scripts/
scripts/ gold_amr_file

The predicted output will be in models/my_directory/gold_amr_file.parsed-gold-concepts for the parser with oracle concept ID, models/my_directory/gold_amr_file.parsed for the full pipeline, and the results saved in models/my_directory/gold_amr_file.results.


No description, website, or topics provided.



You can’t perform that action at this time.