Skip to content
This repository has been archived by the owner on Feb 19, 2020. It is now read-only.

"Parsing" with gold segmentation #47

Open
jodaiber opened this issue Feb 7, 2016 · 2 comments
Open

"Parsing" with gold segmentation #47

jodaiber opened this issue Feb 7, 2016 · 2 comments

Comments

@jodaiber
Copy link

jodaiber commented Feb 7, 2016

Hi @dlwh,

first off, thanks for making Epic available, it's a great tool!

I have a "parsing" problem where I would like to restrict the search space to a fully segmented binarized tree and would like to use the neural parser to only do the labelling for me (the trees come from a customized treebank that I pass to epic for training). I have been trying to do this via constraints (using GoldConstraintsFactory) in NeuralParserTrainer but so far without success. Is there any established/recommended way for using "gold spans" and only letting Epic do the labelling?

Jo

@dlwh
Copy link
Owner

dlwh commented Feb 8, 2016

A question I can answer in the affirmative!

Look at SentimentTreebankPipeline.scala which uses the Sentiment Treebank for sentiment classification. That assumes a fixed tree structure, as well.

It's not the best documented, but it will probably get you very close to what you want.

@jodaiber
Copy link
Author

jodaiber commented Feb 8, 2016

That's perfect, thank you, @dlwh!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants