From de6db32aa69be6c33d17ddb4f2dc4305e8771f59 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Fri, 14 May 2021 19:26:27 -0400 Subject: Improve source term exact match count (#1674) * Update sourceTermExactMatchCount to be based on headword count * Update tests --- test/data/translator-test-results.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'test/data/translator-test-results.json') diff --git a/test/data/translator-test-results.json b/test/data/translator-test-results.json index 19cc5efc..5d8e6abd 100644 --- a/test/data/translator-test-results.json +++ b/test/data/translator-test-results.json @@ -5578,7 +5578,7 @@ "score": 10, "dictionaryIndex": 0, "dictionaryPriority": 0, - "sourceTermExactMatchCount": 2, + "sourceTermExactMatchCount": 1, "maxTransformedTextLength": 4, "headwords": [ { @@ -5797,7 +5797,7 @@ "score": 10, "dictionaryIndex": 0, "dictionaryPriority": 0, - "sourceTermExactMatchCount": 2, + "sourceTermExactMatchCount": 1, "maxTransformedTextLength": 4, "headwords": [ { @@ -5996,7 +5996,7 @@ "score": 10, "dictionaryIndex": 0, "dictionaryPriority": 0, - "sourceTermExactMatchCount": 2, + "sourceTermExactMatchCount": 1, "maxTransformedTextLength": 2, "headwords": [ { @@ -6177,7 +6177,7 @@ "score": 10, "dictionaryIndex": 0, "dictionaryPriority": 0, - "sourceTermExactMatchCount": 2, + "sourceTermExactMatchCount": 1, "maxTransformedTextLength": 2, "headwords": [ { @@ -6630,7 +6630,7 @@ "score": 10, "dictionaryIndex": 0, "dictionaryPriority": 0, - "sourceTermExactMatchCount": 4, + "sourceTermExactMatchCount": 2, "maxTransformedTextLength": 4, "headwords": [ { @@ -7029,7 +7029,7 @@ "score": 10, "dictionaryIndex": 0, "dictionaryPriority": 0, - "sourceTermExactMatchCount": 4, + "sourceTermExactMatchCount": 2, "maxTransformedTextLength": 2, "headwords": [ { -- cgit v1.2.3