brendano / stanford_corenlp_pywrapper

151 stars 59 forks source link

wishlist: running without config file #7

Closed rasika closed 9 years ago

rasika commented 10 years ago

I was wondering It would be nice If i can pass annotator parameters without config file. By the way, what -mode param does? I cannot make it to read the config file. Always does the default annotations. For instance I want to add dcoref.

brendano commented 10 years ago

see the java code for what -mode does. it selects a preset list of annotators. but then if you give it a config file, you can change the annotators again.

dcoref is not supported.

the issue is, i had to write java code for each of the different annotators to create the output data structures in the json. i haven't done that yet for dcoref. i think there are a few others that don't have this either. feel free to contribute if you need it!

theoretically, it should be possible to not have a config file at all, given more java code.

rasika commented 10 years ago

thanks for the quick response. Sure, I will contribute. But, I am afraid that I don't have access to the java code. I tried to decompress JARs but only .class files were there :)

brendano commented 10 years ago

it's all in the source checkout, not just the jars.

On Mon, Sep 8, 2014 at 9:11 AM, rasika90 notifications@github.com wrote:

thanks for quick response. Sure, I will contribute. But, I am afraid that I don't have access to the java code. I tried to decompress JARs but only .class files were there :)

— Reply to this email directly or view it on GitHub https://github.com/brendano/stanford_corenlp_pywrapper/issues/7#issuecomment-54814728 .

rasika commented 10 years ago

I apologize, just found them.

brendano commented 9 years ago

a few days ago i checkedin the capability to set annotators, or any java-level corenlp properties, without a config file.