Skip to content
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

How to submit parameters? #1

Closed
bch80 opened this issue Apr 10, 2017 · 3 comments
Closed

How to submit parameters? #1

bch80 opened this issue Apr 10, 2017 · 3 comments

Comments

@bch80
Copy link

bch80 commented Apr 10, 2017

Hey there, great job this adapter!

for a first round, I'd like to simply use those parameters for OpenNLP:

-annotators tokenize,ssplit

How is it possible to make this happen via the CorenlpAdapter?

@bch80
Copy link
Author

bch80 commented Apr 10, 2017

Oh .. sorry for that one. It says so in the bootstrap.php:

// if you want specific annotators, you can do it like this: // define('CURLPROPERTIES' , '%22annotators%22%3A%22tokenize%2Cregexner%2Cparse%2Cdepparse%2Cpos%2Clemma%2Cmention%2Copenie%2Cner%2Ccoref%2Ckbp%22%2C%22prettyPrint%22%3A%22true%22');

@bch80 bch80 closed this as completed Apr 10, 2017
@DennisDeSwart
Copy link
Owner

DennisDeSwart commented Apr 11, 2017

Hi Chris8080,

Yes, you can change them in "bootstrap.php". As you can see, it's not easy to edit, I wanted to make that a bit more user friendly. But it works. Don't remove the bits at the end. Try something like this:

define('CURLPROPERTIES' , '%22annotators%22%3A%22tokenize%2Cparse%2Cdepparse%22%2C%22prettyPrint%22%3A%22true%22');

@ghost
Copy link

ghost commented Jul 14, 2019

FYI, this doesn't seem to work. For example, I tried

define('CURLPROPERTIES' , '%22annotators%22%3A%22ner%22%2C%22prettyPrint%22%3A%22true%22');

And the server still runs it with full annotators.

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

No branches or pull requests

2 participants