{"record":{"id":"86d207d6d236b5d7","repo":"stanfordnlp/CoreNLP","slug":"sutime-currently-does-not-support-chinese-ignore","errorCode":null,"errorMessage":"SUTime currently does not support Chinese. Ignore property ner.useSUTime.","messagePattern":"SUTime currently does not support Chinese\\. Ignore property ner\\.useSUTime\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"info","filePath":"src/edu/stanford/nlp/ie/regexp/ChineseNumberSequenceClassifier.java","lineNumber":63,"sourceCode":"  public static final String USE_SUTIME_PROPERTY_BASE = \"useSUTime\";\n  public static final String SUTIME_PROPERTY = \"sutime\";\n\n  private final TimeExpressionExtractor timexExtractor;\n\n  public ChineseNumberSequenceClassifier() {\n    this(new Properties(), USE_SUTIME_DEFAULT, new Properties());\n  }\n\n  public ChineseNumberSequenceClassifier(boolean useSUTime) {\n    this(new Properties(), useSUTime, new Properties());\n  }\n\n  public ChineseNumberSequenceClassifier(Properties props, boolean useSUTime, Properties sutimeProps) {\n    super(props);\n    this.useSUTime = useSUTime;\n    if(this.useSUTime) {\n      // TODO: Need a Chinese version of SUTime\n      log.warn(\"SUTime currently does not support Chinese. Ignore property ner.useSUTime.\");\n    }\n    this.timexExtractor = null;\n  }\n\n  // All the tags we need\n  public static final String NUMBER_TAG = \"NUMBER\";\n  public static final String DATE_TAG = \"DATE\";\n  public static final String TIME_TAG = \"TIME\";\n  public static final String MONEY_TAG = \"MONEY\";\n  public static final String ORDINAL_TAG = \"ORDINAL\";\n  public static final String PERCENT_TAG = \"PERCENT\";\n\n  // Patterns we need\n  public static final Pattern CURRENCY_WORD_PATTERN =\n      Pattern.compile(\"元|刀|(?:美|欧|澳|加|日|韩)元|英?镑|法郎|卢比|卢布|马克|先令|克朗|泰?铢|(?:越南)?盾|美分|便士|块钱|毛钱|角钱\");\n  // In theory 块 钱 should be separated by segmenter, but just in case segmenter fails\n  // TODO(yuhao): Need to add support for 块 钱, 毛 钱, 角 钱, 角, 五 块 二\n  public static final Pattern PERCENT_WORD_PATTERN1 = Pattern.compile(\"(?:百分之|千分之).+\");","sourceCodeStart":45,"sourceCodeEnd":81,"githubUrl":"https://github.com/stanfordnlp/CoreNLP/blob/1b7edd19c4d0d7b1f13a2591425b9b60a0b1af7a/src/edu/stanford/nlp/ie/regexp/ChineseNumberSequenceClassifier.java#L45-L81","documentation":"ChineseNumberSequenceClassifier's constructor warns that SUTime (temporal expression extraction) has no Chinese version. If the ner.useSUTime property is true, it cannot be honored: timexExtractor is set to null and temporal tagging is silently skipped for Chinese text.","triggerScenarios":"Constructing ChineseNumberSequenceClassifier (directly or via a Chinese NER pipeline) with useSUTime=true, e.g. properties containing ner.useSUTime=true while loading the Chinese NER model.","commonSituations":"Reusing an English NER Properties template (which enables SUTime) for the Chinese model; pipeline defaults where useSUTime wasn't disabled for Chinese.","solutions":["Set ner.useSUTime=false in the Properties used to build the Chinese NER pipeline.","If temporal tagging of Chinese is required, use a separate Chinese time-expression tool or your own extractor.","Strip English-derived SUTime properties when copying config across languages."],"exampleFix":"// before\nprops.setProperty(\"ner.useSUTime\", \"true\");\n// after\nprops.setProperty(\"ner.useSUTime\", \"false\"); // SUTime unsupported for Chinese","handlingStrategy":"validation","validationCode":"if (\"zh\".equals(lang) && Boolean.parseBoolean(props.getProperty(\"ner.useSUTime\", \"false\"))) {\n  props.setProperty(\"ner.useSUTime\", \"false\");\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Don't reuse English NER Properties for Chinese models.","Centralize per-language pipeline config.","Document that SUTime is English-only."],"tags":["java","ner","chinese","sutime","unsupported"],"backgroundTag":"feature-not-enabled","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"}