Code used for my undergrad thesis on "String to Semantic Graph Alignment".
Most of the code is adapted from "Aligning English Strings with Abstract Meaning Representation Graphs" (Pourdamghani et al., 2014).
Download and install MGIZA++.
Download the AMR bank.
Provide the address of mgizapp/scripts and mgizapp/bin folders in the addresses.keep
file.
Provide the address of AMR and English files in the addresses.keep
file, add .keep
or put them in a different directory.
The data files must have one linearized AMR or one English sentence per line.
Run script run.sh
.
AMR_Aligned.keep
- Aligned English/AMR pairs.
Alignments.keep
- Just the alignments.
You need g++
and MGIZA++
installed.
Melanie Tosik, tosik@uni-potsdam.de