chinese-seg
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -46,3 +46,3 @@ module.exports = function(options) { | ||
w2 = words[i + len + 1]; | ||
if (isNumeral(w1) && (w2 != null) && (DATETIME[w2.w] != null)) { | ||
if ((w1 != null) && isNumeral(w1) && (w2 != null) && (DATETIME[w2.w] != null)) { | ||
len += 2; | ||
@@ -49,0 +49,0 @@ newWord = newWord + w1.w + w2.w; |
{ | ||
"name": "chinese-seg", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Implement Chinese text segmentation algorithm", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8432098