{"record":{"id":"e7f01c4446c99ae7","repo":"stanfordnlp/CoreNLP","slug":"no-such-trained-tagger-config-file-found-name","errorCode":null,"errorMessage":"No such trained tagger config file found: \" + name","messagePattern":"No such trained tagger config file found: \" \\+ name","errorType":"exception","errorClass":"RuntimeIOException","httpStatus":null,"severity":"error","filePath":"src/edu/stanford/nlp/tagger/maxent/TaggerConfig.java","lineNumber":155,"sourceCode":"\n  public TaggerConfig(Properties props) {\n    // load up the default properties\n    this();\n\n    /* Try and use the default properties from the model */\n    // Properties modelProps = new Properties();\n    // TaggerConfig oldConfig = new TaggerConfig(); // loads default values in oldConfig\n    if (! props.containsKey(\"trainFile\")) {\n      String name = props.getProperty(\"model\");\n      if (name == null) {\n        name = props.getProperty(\"dump\");\n      }\n      if (name != null) {\n        try (DataInputStream in = new DataInputStream(IOUtils.getInputStreamFromURLOrClasspathOrFileSystem(name))) {\n          log.info(\"Loading default properties from tagger \" + name);\n          this.putAll(TaggerConfig.readConfig(in)); // overwrites defaults with any serialized values.\n        } catch (Exception e) {\n          throw new RuntimeIOException(\"No such trained tagger config file found: \" + name);\n        }\n      }\n    }\n\n    setProperties(props);\n  }\n\n  public void setProperties(Properties props) {\n    if (props.getProperty(\"\") != null) {\n      throw new RuntimeException(\"unknown argument(s): \\\"\" + props.getProperty(\"\") + '\\\"');\n    }\n\n    if (props.getProperty(\"genprops\") != null) {\n      printGenProps(System.out);\n      System.exit(0);\n    }\n\n    if (props.containsKey(\"mode\") && props.containsKey(\"file\")) {","sourceCodeStart":137,"sourceCodeEnd":173,"githubUrl":"https://github.com/stanfordnlp/CoreNLP/blob/1b7edd19c4d0d7b1f13a2591425b9b60a0b1af7a/src/edu/stanford/nlp/tagger/maxent/TaggerConfig.java#L137-L173","documentation":"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.","triggerScenarios":"Thrown at src/edu/stanford/nlp/tagger/maxent/TaggerConfig.java:155 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"1b7edd19c4d0d7b1f13a2591425b9b60a0b1af7a","analyzedAt":"2026-09-10T02:24:07.274Z","contentChangedAt":"2026-09-10T02:24:07.274Z","schemaVersion":2},"datasetVersion":"2026-09-17T15:17:12.973Z"}