C++ implementation for Backpropagating through Structured Argmax using a SPIGOT. More detailed documentation coming soon.
The following software needs to be installed:
- A C++ compiler supporting the [C++11 language standard] (https://en.wikipedia.org/wiki/C%2B%2B11)
- CMake (tested with version 3.6.2)
- Boost libraries (tested with version 1.61.0)
- Git LFS (optional)
Other dependencies including Eigen, DyNet, gflags, glog, and AD3, and included in this repo to keep it self-contained.
git clone https://github.com/Noahs-ARK/SPIGOT
cd SPIGOT
./install_deps.sh
mkdir -p SyntacticSemanticParsing/build
cd SyntacticSemanticParsing/build
cmake ..; make -j4
cd ../..
git lfs fetch
git lfs checkout
Or you can simply download the files and put them to the corresponding places.
The data format follows that by NeurboParser. Several training samples are included under 'data/'.
You can use the scripts in './SyntacticSemanticParsing' to train/evaluate the parser.