@nlpjs/ner
Advanced tools
Comparing version 4.4.0 to 4.6.0
{ | ||
"name": "@nlpjs/ner", | ||
"version": "4.4.0", | ||
"version": "4.6.0", | ||
"description": "Named Entity Recognition", | ||
@@ -28,7 +28,7 @@ "author": { | ||
"dependencies": { | ||
"@nlpjs/core": "^4.4.0", | ||
"@nlpjs/language-min": "^4.3.0", | ||
"@nlpjs/core": "^4.6.0", | ||
"@nlpjs/language-min": "^4.6.0", | ||
"@nlpjs/similarity": "^4.0.0-rc.4" | ||
}, | ||
"gitHead": "125bc11837a354967b250dd4a8773412d089b34d" | ||
"gitHead": "b6da53ad63335e0e1e37f2070049be062432f715" | ||
} |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -25,4 +25,14 @@ /* | ||
function runDiscard(srcEdge, srcOther, useMaxLength) { | ||
const edge = srcEdge; | ||
const other = srcOther; | ||
let edge; | ||
let other; | ||
if ( | ||
srcEdge.accuracy > srcOther.accuracy || | ||
(srcEdge.accuracy === srcOther.accuracy && srcEdge.length > srcOther.length) | ||
) { | ||
edge = srcEdge; | ||
other = srcOther; | ||
} else { | ||
edge = srcOther; | ||
other = srcEdge; | ||
} | ||
if (other.start <= edge.end && other.end >= edge.start) { | ||
@@ -29,0 +39,0 @@ if (other.accuracy < edge.accuracy) { |
@@ -0,0 +0,0 @@ /* |
46140
1334
Updated@nlpjs/core@^4.6.0
Updated@nlpjs/language-min@^4.6.0