{"record":{"id":"7789f7cc01d12690","repo":"stanfordnlp/CoreNLP","slug":"not-a-valid-ellipses-style-7789f7","errorCode":null,"errorMessage":"Not a valid ellipses style: ","messagePattern":"Not a valid ellipses style: ","errorType":"exception","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"src/edu/stanford/nlp/process/PTBLexer.flex","lineNumber":210,"sourceCode":"          } else if (\"normalizeOtherBrackets\".equals(key)) {\n            normalizeOtherBrackets = val;\n          } else if (\"quotes\".equals(key)) {\n            try {\n              quoteStyle = LexerUtils.QuotesEnum.valueOf(value.trim().toUpperCase(Locale.ROOT));\n            } catch (IllegalArgumentException iae) {\n              throw new IllegalArgumentException (\"Not a valid quotes style: \" + value);\n            }\n          } else if (\"splitAssimilations\".equals(key)) {\n            splitAssimilations = val;\n          } else if (\"splitHyphenated\".equals(key)) {\n            splitHyphenated = val;\n          } else if (\"splitForwardSlash\".equals(key)) {\n            splitForwardSlash = val;\n          } else if (\"ellipses\".equals(key)) {\n            try {\n              ellipsisStyle = LexerUtils.EllipsesEnum.valueOf(value.trim().toUpperCase(Locale.ROOT));\n            } catch (IllegalArgumentException iae) {\n              throw new IllegalArgumentException (\"Not a valid ellipses style: \" + value);\n            }\n          } else if (\"dashes\".equals(key)) {\n            try {\n              dashesStyle = LexerUtils.DashesEnum.valueOf(value.trim().toUpperCase(Locale.ROOT));\n            } catch (IllegalArgumentException iae) {\n              throw new IllegalArgumentException (\"Not a valid dashes style: \" + value);\n            }\n          } else if (\"escapeForwardSlashAsterisk\".equals(key)) {\n            escapeForwardSlashAsterisk = val;\n          } else if (\"untokenizable\".equals(key)) {\n            switch (value) {\n              case \"noneDelete\":\n                untokenizable = UntokenizableOptions.NONE_DELETE;\n                break;\n              case \"firstDelete\":\n                untokenizable = UntokenizableOptions.FIRST_DELETE;\n                break;\n              case \"allDelete\":","sourceCodeStart":192,"sourceCodeEnd":228,"githubUrl":"https://github.com/stanfordnlp/CoreNLP/blob/1b7edd19c4d0d7b1f13a2591425b9b60a0b1af7a/src/edu/stanford/nlp/process/PTBLexer.flex#L192-L228","documentation":"PTBLexer's options parser throws this IllegalArgumentException when the \"ellipses\" option value cannot be converted to a LexerUtils.EllipsesEnum constant via valueOf (after trimming and uppercasing). Accepted values are the enum constants such as unicode and pt3. This surfaces when configuring PTBTokenizer options through properties or the options string.","triggerScenarios":"Setting the tokenizer option ellipses=<value> (via PTBTokenizer options string or CoreNLP tokenize properties) with a value that is not a valid LexerUtils.EllipsesEnum name, e.g. ellipses=dots or ellipses=three-dots.","commonSituations":"CoreNLP config files with ellipses values copied from blog posts for the wrong library version; typos; confusion between the ellipses and dashes option value sets.","solutions":["Set ellipses to a valid enum name such as unicode or pt3 (case-insensitive).","Consult LexerUtils.EllipsesEnum in your CoreNLP version for the exact accepted constants.","Remove the ellipses option to use the default if not needed.","Validate option strings against the enums before passing them to PTBTokenizer in production code."],"exampleFix":"// before\nPTBTokenizer<CoreLabel> tok = new PTBTokenizer<>(reader, \"ellipses=dots\"); // throws\n// after\nPTBTokenizer<CoreLabel> tok = new PTBTokenizer<>(reader, \"ellipses=unicode\");","handlingStrategy":"validation","validationCode":"// Pre-validate the ellipses option against the enum\nstatic void checkEllipsesOption(String value) {\n  try {\n    edu.stanford.nlp.process.LexerUtils.EllipsesEnum.valueOf(value.trim().toUpperCase(java.util.Locale.ROOT));\n  } catch (IllegalArgumentException e) {\n    throw new IllegalArgumentException(\"ellipses must be one of \" + java.util.Arrays.toString(edu.stanford.nlp.process.LexerUtils.EllipsesEnum.values()) + \", got: \" + value);\n  }\n}","typeGuard":null,"tryCatchPattern":"try {\n  PTBTokenizer<CoreLabel> tok = new PTBTokenizer<>(reader, options);\n} catch (IllegalArgumentException e) {\n  logger.error(\"Bad tokenizer option (allowed ellipses values: e.g. unicode, pt3): {}\", e.getMessage());\n  throw e;\n}","preventionTips":["Use only enum names valid for your CoreNLP version (e.g. unicode, pt3)","Do not reuse dashes values for the ellipses option","Smoke-test option strings at startup","Centralize tokenizer options and review changes"],"tags":["tokenizer","configuration","java","corenlp","enum"],"backgroundTag":"invalid-enum-value","analyzedSha":"1b7edd19c4d0d7b1f13a2591425b9b60a0b1af7a","analyzedAt":"2026-09-10T02:24:07.274Z","contentChangedAt":"2026-09-10T02:24:07.274Z","schemaVersion":2},"datasetVersion":"2026-09-15T23:17:13.987Z"}