NLPchina / ansj_seg

ansj分词.ict的真正java实现.分词效果速度都超过开源版的ict. 中文分词,人名识别,词性标注,用户自定义词典

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TimeRecognition的小问题

BrightZhu-QWQ opened this issue · comments

在使用TimeRecognition对结果进行处理时第一个数字为null,
测试字符串:2021-03-29 12:16:32是一个好日子
输出结果:[null-03-29 12:16:32/t, 是/v, 一个/m, 好日子/n]

问题出现在Term当中,可以将配置文件的isRealName改为ture正常使用

public Term merageWithBlank(Term to) {
    this.name = this.name + to.getName();
    this.realName = this.realName + to.getRealName();
    this.setTo(to.to);
    return this;
}