{"record":{"id":"0ca899c7731ff24f","repo":"stanfordnlp/CoreNLP","slug":"taggedfilerecord-argument-argpieces-0-is-unkno","errorCode":null,"errorMessage":"TaggedFileRecord argument ${argPieces[0]} is unknown","messagePattern":"TaggedFileRecord argument (.+?) is unknown","errorType":"validation","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"src/edu/stanford/nlp/tagger/io/TaggedFileRecord.java","lineNumber":201,"sourceCode":"      } else if (argPieces[0].equalsIgnoreCase(TREE_NORMALIZER)) {\n        treeNormalizer = ReflectionLoading.loadByReflection(argPieces[1]);\n      } else if (argPieces[0].equalsIgnoreCase(TREE_READER)) {\n        trf = ReflectionLoading.loadByReflection(argPieces[1]);\n      } else if (argPieces[0].equalsIgnoreCase(TREE_RANGE)) {\n        String range = argPieces[1].replaceAll(\":\", \",\");\n        treeRange = new NumberRangesFileFilter(range, true);\n      } else if (argPieces[0].equalsIgnoreCase(TREE_FILTER)) {\n        treeFilter = ReflectionLoading.loadByReflection(argPieces[1]);\n      } else if (argPieces[0].equalsIgnoreCase(WORD_COLUMN)) {\n        wordColumn = Integer.valueOf(argPieces[1]);\n      } else if (argPieces[0].equalsIgnoreCase(TAG_COLUMN)) {\n        tagColumn = Integer.valueOf(argPieces[1]);\n      } else if (argPieces[0].equalsIgnoreCase(COMMENTS)) {\n        comments = Boolean.valueOf(argPieces[1]);\n      } else if (argPieces[0].equalsIgnoreCase(SKIP_MWT)) {\n        skipMWT = Boolean.valueOf(argPieces[1]);\n      } else {\n        throw new IllegalArgumentException(\"TaggedFileRecord argument \" +\n                                           argPieces[0] + \" is unknown\");\n      }\n    }\n    return new TaggedFileRecord(file, format, encoding, tagSeparator,\n                                treeTransformer, treeNormalizer, trf, treeRange,\n                                treeFilter, wordColumn, tagColumn, comments, skipMWT);\n  }\n\n  public static String getEncoding(Properties config) {\n    String encoding = config.getProperty(TaggerConfig.ENCODING_PROPERTY);\n    if (encoding == null)\n      return TaggerConfig.ENCODING;\n    return encoding;\n  }\n\n  public static String getTagSeparator(Properties config) {\n    String tagSeparator =\n      config.getProperty(TaggerConfig.TAG_SEPARATOR_PROPERTY);","sourceCodeStart":183,"sourceCodeEnd":219,"githubUrl":"https://github.com/stanfordnlp/CoreNLP/blob/1b7edd19c4d0d7b1f13a2591425b9b60a0b1af7a/src/edu/stanford/nlp/tagger/io/TaggedFileRecord.java#L183-L219","documentation":"After splitting each option into key=value, createRecord() matches the key against the known option names (format, encoding, tagSeparator, treeTransformer, treeNormalizer, tagger Training parameters, treeRange, treeFilter, wordColumn, tagColumn, comments, skipMWT). Any key that matches none of them triggers IllegalArgumentException naming the unknown option.","triggerScenarios":"Passing an option key that isn't one of the recognized TaggedFileRecord option names in the file description string, e.g. \"data/file.txt,fmt=TSV\" or a misspelling like \"tagSeperator=_\".","commonSituations":"Misspelled option names in testFile/trainFile descriptions, copying options valid for other tools into this description, or inventing options that don't exist in your tagger version.","solutions":["Replace the unknown key with a supported one: format, encoding, tagSeparator, treeTransformer, treeNormalizer, treeRange, treeFilter, wordColumn, tagColumn, comments, or skipMWT.","Check spelling exactly (case-insensitive): e.g. 'tagSeparator' not 'tagSeperator'.","Consult the TaggedFileRecord javadoc for your library version; some options (wordColumn, skipMWT) exist only in newer releases."],"exampleFix":"// before\n-testFile \"data/test.txt,fmt=TSV,tagSeperator=_\"\n// after\n-testFile \"data/test.txt,format=TSV,tagSeparator=_\"","handlingStrategy":"validation","validationCode":"// Java\nSet<String> known = Set.of(\"format\",\"encoding\",\"tagseparator\",\"treetransformer\",\n  \"treenormalizer\",\"treebanklanguagepack\",\"treerange\",\"treefilter\",\"taggertrainingfile\",\n  \"wordcolumn\",\"tagcolumn\",\"comments\",\"skipmwt\");\nboolean ok = known.contains(key.toLowerCase(Locale.ROOT));","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Verify option keys against the TaggedFileRecord javadoc for your version.","Watch for near-miss spellings like tagSeperator vs tagSeparator.","Test small file descriptions before embedding them in large pipelines."],"tags":["nlp","pos-tagger","config","argument-parsing"],"backgroundTag":"invalid-config-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"}