stanfordnlp/CoreNLP · error · RuntimeIOException
No such trained tagger config file found: " + name
Error message
No such trained tagger config file found: " + name
What it means
RuntimeIOException from TaggerConfig when, in tagging/test mode, the specified model (or dump) file's serialized default properties cannot be read — the trained tagger file is missing, unreadable, or not a valid tagger model.
Solutions
- Verify the -model path points to an existing trained tagger file
- Retrain or re-download the model if it is missing/corrupt
- Check classpath/URL accessibility for the model path
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at src/edu/stanford/nlp/tagger/maxent/TaggerConfig.java:155 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of stanfordnlp/CoreNLP@1b7edd19c4 (2026-09-10).
Data as JSON: /api/errors/e7f01c4446c99ae7.
Report an issue: GitHub.
Appendix: source
Thrown at src/edu/stanford/nlp/tagger/maxent/TaggerConfig.java:155
public TaggerConfig(Properties props) {
// load up the default properties
this();
/* Try and use the default properties from the model */
// Properties modelProps = new Properties();
// TaggerConfig oldConfig = new TaggerConfig(); // loads default values in oldConfig
if (! props.containsKey("trainFile")) {
String name = props.getProperty("model");
if (name == null) {
name = props.getProperty("dump");
}
if (name != null) {
try (DataInputStream in = new DataInputStream(IOUtils.getInputStreamFromURLOrClasspathOrFileSystem(name))) {
log.info("Loading default properties from tagger " + name);
this.putAll(TaggerConfig.readConfig(in)); // overwrites defaults with any serialized values.
} catch (Exception e) {
throw new RuntimeIOException("No such trained tagger config file found: " + name);
}
}
}
setProperties(props);
}
public void setProperties(Properties props) {
if (props.getProperty("") != null) {
throw new RuntimeException("unknown argument(s): \"" + props.getProperty("") + '\"');
}
if (props.getProperty("genprops") != null) {
printGenProps(System.out);
System.exit(0);
}
if (props.containsKey("mode") && props.containsKey("file")) {View on GitHub (pinned to 1b7edd19c4)