stanfordnlp / CoreNLP

CoreNLP: A Java suite of core NLP tools for tokenization, sentence segmentation, NER, parsing, coreference, sentiment analysis, etc.
http://stanfordnlp.github.io/CoreNLP/
GNU General Public License v3.0
9.68k stars 2.7k forks source link

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

Open pnlph opened 11 months ago

pnlph commented 11 months ago

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!

AngledLuffa commented 11 months ago

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.