luheng / deep_srl

Code and pre-trained model for: Deep Semantic Role Labeling: What Works and What's Next
Apache License 2.0
330 stars 77 forks source link

constraints #10

Closed cosmozhang closed 6 years ago

cosmozhang commented 6 years ago

In the paper, you mentioned the constraints were used. In the code, where can I find them? Thanks!

luheng commented 6 years ago

Which constraints are you referring to? The code here uses the BIO constraints, which are the only constraints included in the main results in the 2017 paper. The code for A* search was implemented in c++ and was not integrated with the rest of the Theano code (which make it hard to run/setup, etc.).

cosmozhang commented 6 years ago

Thanks for your swift reply! In which file did you put BIO constraints in your code?

luheng commented 6 years ago

https://github.com/luheng/deep_srl/blob/master/python/neural_srl/shared/inference.py