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;
}