Mute Stanford coreNLP logging

后端 未结 5 1780
深忆病人
深忆病人 2021-01-14 20:42

First of all, Java is not my usual language, so I\'m quite basic at it. I need to use it for this particular project, so please be patient, and if I have omitted any relevan

5条回答
  •  不知归路
    2021-01-14 21:32

    Om’s answer is good, but two other possibly useful approaches:

    • If it is just these warnings from the tokenizer that are annoying you, you can (in code or in StanfordCoreNLP.properties) set a property so they disappear: props.setProperty("tokenize.options", "untokenizable=NoneKeep");.
    • If slf4j is on the classpath, then, by default, our own Redwoods logger will indeed log through slf4j. So, you can also set the logging level using slf4j.

提交回复
热议问题