Java 为什么在创建2个Stanford NLP管道时,Stanford dcoref停止对错误文本发出警告?

Java 为什么在创建2个Stanford NLP管道时,Stanford dcoref停止对错误文本发出警告?,java,stanford-nlp,Java,Stanford Nlp,我将斯坦福Corenlp3.5.1与SR解析器模型一起使用 运行下面的代码时,当在同一作用域中创建另一个未使用的管道时,dcoref注释器将警告记录在方法try1中,但不记录在try2中 import java.util.Properties; import edu.stanford.nlp.pipeline.StanfordCoreNLP; public class NLPBug { static String badText = "Colonial Williamsburg A hist

我将斯坦福Corenlp3.5.1与SR解析器模型一起使用

运行下面的代码时,当在同一作用域中创建另一个未使用的管道时,dcoref注释器将警告记录在方法try1中,但不记录在try2中

import java.util.Properties;

import edu.stanford.nlp.pipeline.StanfordCoreNLP;

public class NLPBug {
static String badText = "Colonial Williamsburg A historical researcher has compiled beauty tips from the time and created a hog's lard moisturizer.";

public static void main(String[] args) {
    Properties p1 = new Properties();
    p1.put("annotators",
            "tokenize, ssplit, cleanxml, pos, lemma, ner, entitymentions, parse, dcoref");
    p1.put("parse.model",
            "edu/stanford/nlp/models/srparser/englishSR.ser.gz");

    Properties p2 = new Properties();
    p2.put("annotators", "tokenize, ssplit, pos, lemma");

    try1(p1);
    try2(p1, p2);
}

public static void try1(Properties p1) {
    StanfordCoreNLP nlp = new StanfordCoreNLP(p1);
    System.out.println();
    System.out.println("Annotating (1)...");
    nlp.process(badText);
    System.out.print("Done");
}

public static void try2(Properties p1, Properties p2) {
    StanfordCoreNLP nlp = new StanfordCoreNLP(p1);
    StanfordCoreNLP notUsed = new StanfordCoreNLP(p2);
    System.out.println(); 
    System.out.println("Annotating (2)");
    nlp.process(badText);
    System.out.println("Done...");
}

}
警告RuleBasedReferenceFinder:未能找到头部标记,RuleBasedReferenceFinder:最后手段:作为头部:润肤霜返回仅在try1中出现。这种行为的原因是什么?有没有办法修复这些警告