{"record":{"id":"ad442c42e445bdfb","repo":"stanfordnlp/CoreNLP","slug":"error-creating-hybrid-coref-system","errorCode":null,"errorMessage":"Error creating hybrid coref system","messagePattern":"Error creating hybrid coref system","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"src/edu/stanford/nlp/coref/CorefAlgorithm.java","lineNumber":51,"sourceCode":"    } else if (algorithm == CorefAlgorithmType.FASTNEURAL) {\n      return new FastNeuralCorefAlgorithm(props, dictionaries);\n    } else if (algorithm == CorefAlgorithmType.CUSTOM) {\n      String classname = PropertiesUtils.getString(props, \"coref.algorithm.class\", null);\n      try {\n        if (classname != null) {\n          Class clazz = Class.forName(classname);\n          return (CorefAlgorithm) clazz.getConstructor(Properties.class, Dictionaries.class).newInstance(props, dictionaries);\n        } else {\n          throw new RuntimeException(\"Please specify coref.algorithm.class\");\n        }\n      } catch (Exception e) {\n        throw new RuntimeException(\"Error creating custom coref system\", e);\n      }\n    } else {\n      try {\n        return new HybridCorefSystem(props, dictionaries);\n      } catch (Exception e) {\n        throw new RuntimeException(\"Error creating hybrid coref system\", e);\n      }\n    }\n  }\n\n}\n","sourceCodeStart":33,"sourceCodeEnd":57,"githubUrl":"https://github.com/stanfordnlp/CoreNLP/blob/1b7edd19c4d0d7b1f13a2591425b9b60a0b1af7a/src/edu/stanford/nlp/coref/CorefAlgorithm.java#L33-L57","documentation":"Wraps exceptions thrown during construction of a hybrid coref system in CorefAlgorithm.fromProps; the underlying component constructors failed (bad properties, missing models, or IO errors) while assembling the hybrid pipeline.","triggerScenarios":"Thrown at src/edu/stanford/nlp/coref/CorefAlgorithm.java:51 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check properties for the hybrid algorithm's component settings","Verify required models and resources are downloaded and paths correct","Inspect the cause for the failing sub-component"],"exampleFix":null,"handlingStrategy":"try-catch","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"}