我认为它可以使用该代码:
val props = new Properties() props.put("annotators", "tokenize, ssplit, pos, lemma, ner, regexner") props.put("ner.model", "/your/path/ner-model.ser.gz"); val pipeline = new StanfordCoreNLP(props)