-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable CoNLL output. #31
base: master
Are you sure you want to change the base?
Conversation
This patch adds the CoNLL output of Stanford CoreNLP to the JSON annotation. The data is returned in two forms: - In its raw form as `conll_raw`, in the same format as given when CoreNLP is run from the command line using the flag `-outputFormat conll` - Per-sentence as `deps_conll`, which adds CoNLL dependencies to each sentence. To enable the CoNLL output, pass `"outputFormat": "conll"` in the `configdict` when creating a new `CoreNLP` instance.
There's a couple of issues with the code I've written - firstly, both the new functions throw exceptions ( I added catch blocks for them but I wasn't sure how to respond - in the case of an I doubt either of these will occur since the output is taken directly from CoreNLP, but it's possible. I'm also not sure what happens if a blank document is given - it just occurred to me to test that now. This is my first pull request, so I apologise if it's a bit messed up! |
thanks! one question i have is, what's the purpose of having conll output? On Thu, Aug 20, 2015 at 11:36 AM, Ayrton Massey [email protected]
|
I'm trying to use SEMAFOR to perform Semantic Frame Analysis, which accepts CoNLL data as input. Since I'm already using the wrapper for NER/coref it'd be nice to get the CoNLL output as well, rather than running a separate program. This means I don't have to:
If the wrapper is already doing the annotation, I may as well have it produce the CoNLL output too - especially as the wrapper is already integrated with my software. I did include the raw tab-separated CoNLL data under |
This patch adds the CoNLL output of Stanford CoreNLP to the JSON annotation.
The data is returned in two forms:
conll_raw
, in the same format as given when CoreNLP is runfrom the command line using the flag
-outputFormat conll
deps_conll
, which adds CoNLL dependencies to each sentence.To enable the CoNLL output, pass
"outputFormat": "conll"
in theconfigdict
when creating a newCoreNLP
instance.