CoreNLP icon indicating copy to clipboard operation
CoreNLP copied to clipboard

HTML Interface not Reflecting `quote` Annotator Specified in Properties File

Open pnlph opened this issue 2 years ago • 1 comments

Hello,

I am running the Stanford CoreNLP server 4.5.5 with a custom properties file to specify certain annotators. However, I've noticed that the HTML interface accessed via localhost does not reflect the changes made in the properties file, particularly the quote annotator which I have specified in my properties file is missing from the HTML interface.

Here's the relevant portion of my properties file:

# CoreNLP.properties
annotators = tokenize, ssplit, pos, lemma, ner, regexner, parse, depparse, coref, kbp, quote, openie, sentiment

Despite having the quote annotator specified in the properties file, it does not appear as an option in the UI. I have also adjusted the server's memory allocation to ensure there's enough memory for all annotators.

Command used to start the server:

java -mx4g -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer -port 9000 -timeout 15000 -props CoreNLP.properties

I was wondering if the HTML interface is supposed to reflect the annotators listed in the properties file, or if it's static and displays all annotators regardless of the properties file settings. If it's supposed to reflect the properties file, could you provide some guidance on how to ensure the HTML interface shows the quote annotator as an option?

Thanks!

pnlph avatar Nov 03 '23 13:11 pnlph

A quick glance at the properties reading code makes me wonder if the command line properties actually affect all aspects of CoreNLP. For example, I don't see a way to update which Chinese models are used by the interface (although certainly the models used for the API requests can be updated).

However, I don't think this is the problem you ran into, anyway. The problem here is that there is no Brat conversion for the quote annotator.

AngledLuffa avatar Nov 03 '23 17:11 AngledLuffa