Stanford nlp 斯坦福大学CoreNLP忽视的培训模式

Stanford nlp 斯坦福大学CoreNLP忽视的培训模式,stanford-nlp,sentiment-analysis,training-data,scoring,Stanford Nlp,Sentiment Analysis,Training Data,Scoring,我制作了一个小样本训练模型,用于使用coreNLP执行情绪分析。为了让coreNLP使用此模型,我编写了以下几行代码: props = new Properties(); props.put("sample_model-0023-100.00.ser.gz", "/home/usr/Documents/coreNLP/"); props.put("annotators", "tokenize, ssplit, parse, lemma, sentiment"); pipeline = new

我制作了一个小样本训练模型,用于使用coreNLP执行情绪分析。为了让coreNLP使用此模型,我编写了以下几行代码:

props = new Properties(); 
props.put("sample_model-0023-100.00.ser.gz", "/home/usr/Documents/coreNLP/");
props.put("annotators", "tokenize, ssplit, parse, lemma, sentiment"); 
pipeline = new StanfordCoreNLP(props);
但是,代码似乎没有使用我所指的模型。我知道这一点,因为我给它传递了几个句子,如果代码使用这个模型,应该会得到一定的分数,但我得到的分数不同。我的代码行中是否缺少阻止coreNLP使用我创建的模型的内容?

您希望这样:

props.put("sentiment.model", "/path/to/sample_model-0023-100.00.ser.gz");

谢谢,我的论点搞砸了。你们如何使用自定义模型?我开始学习NLP,我很好奇如何训练我们的定制模型。是否有与此相关的文档?