uc3-dmp-id 0.1.29 → 0.1.31
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/uc3-dmp-id/comparator.rb +3 -3
- data/lib/uc3-dmp-id/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c2b799b3390340a0305536f61b9ac6759c7bc7222d28b2b394de872babe89101
|
4
|
+
data.tar.gz: 5276c677ea75ece39859c6ff5927072b3d90f2afa580604c75c7b47c32187b74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e7ef0c1d827b2b0776c15a930b3dd26bb39ba1c5617f85d1abc0dacefe8c4db1b7087b0e9de2b7c51cf3d9b3fbbfa263fb998fcb5b8ec21268bb9019eb20ed4
|
7
|
+
data.tar.gz: f93505732e2bd768e968b8be211a6792ec8eb4b2712bfe33400ad69930840533c636ebec79ab033ef789a19793d09ae942ac9d94935d8fd5fb205f8ea578c8ef
|
@@ -79,13 +79,13 @@ module Uc3DmpId
|
|
79
79
|
next if response[:score] <= 2
|
80
80
|
|
81
81
|
# Set the confidence level based on the score
|
82
|
-
response[:dmp_id] =
|
82
|
+
response[:dmp_id] = entry['_id']
|
83
83
|
response[:confidence] = if response[:score] > 10
|
84
84
|
'High'
|
85
85
|
else
|
86
86
|
(response[:score] > 5 ? 'Medium' : 'Low')
|
87
87
|
end
|
88
|
-
logger&.debug(message: "Found a match!", details: { dmp: dmp, analysis: response })
|
88
|
+
@logger&.debug(message: "Found a match!", details: { dmp: dmp, analysis: response })
|
89
89
|
scoring << response
|
90
90
|
end
|
91
91
|
|
@@ -223,7 +223,7 @@ module Uc3DmpId
|
|
223
223
|
"incoming_#{type}": cleansed,
|
224
224
|
nlp_score: nlp_processor.similarity(dmp_val, cleansed)
|
225
225
|
}
|
226
|
-
@logger&.debug(message: 'Text::WhiteSimilarity score', details:)
|
226
|
+
# @logger&.debug(message: 'Text::WhiteSimilarity score', details:)
|
227
227
|
return response if details[:nlp_score] < 0.5
|
228
228
|
|
229
229
|
response[:score] += details[:nlp_score] >= 0.75 ? 5 : 2
|
data/lib/uc3-dmp-id/version.rb
CHANGED