Skip to content

miguelballesteros/lstm-dsynt

Repository files navigation

lstm-dsynt

Required software

  • A C++ compiler supporting the C++11 language standard
  • Boost libraries
  • Eigen (newer versions strongly recommended)
  • CMake
  • gcc (only tested with gcc version 5.3.0, may be incompatible with earlier versions)

Build instructions

mkdir build
cd build
cmake .. -DEIGEN3_INCLUDE_DIR=/path/to/eigen
make -j2

Train a parsing model

First, run goldParser.py to produce the oracle file. Second run the parser with the following command:

   parser/lstm-parse -T SpanishTreebank/train-oracle.txt -D SpanishTreebank/development-oracle.txt --hidden_dim 100 --lstm_input_dim 100 --pretrained_dim 64 -w SpanishTreebank/vec.txt --rel_dim 20 --action_dim 20 -M -P -t

Parsing

parser/lstm-parse -T SpanishTreebank/train-oracle.txt -D SpanishTreebank/development-oracle.txt --hidden_dim 100 --lstm_input_dim 100 --pretrained_dim 64 -w SpanishTreebank/vec.txt --rel_dim 20 --action_dim 20 -M -P -m <parameters-file>

License

This software is released under the terms of the Apache License, Version 2.0.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published