uc3-dmp-id 0.1.36 → 0.1.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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: 4b8c0ff9aa6add1fc2da937d9f76872ae6bb287adf5df008d9c0d434f25fd717
|
4
|
+
data.tar.gz: a0479d353eb1d64cfab1bdb718f3efcf6a1d66cec8ea444ab735e74708f88984
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a578c6b89bb5d94172d5e2c24255f81326871616767039a4aa4de6d1c00da4a9d16fcf20f26a4479d8d1d5017e90dfcb27ca9c6c4bb5b1ed5421928bfb518eeb
|
7
|
+
data.tar.gz: 3dc8d1999fb6f26cdf8fc465d160513982ac7607bfb7c5e4c5f719b4f43d3b5d82261c5c4ce87cdd10be1d1631276b212b54cfd60b3f5523b389b3f4da25dbe5
|
@@ -76,8 +76,8 @@ module Uc3DmpId
|
|
76
76
|
response = _repository_match?(hash:, dmp:, response:) if response[:score].positive?
|
77
77
|
response = _text_match?(type: 'title', text: hash['title'], dmp:, response:) if response[:score].positive?
|
78
78
|
response = _text_match?(type: 'abstract', text: hash['description'], dmp:, response:) if response[:score].positive?
|
79
|
-
# If the score is less than
|
80
|
-
next if response[:score] <=
|
79
|
+
# If the score is less than 4 then we have no confidence that it is a match
|
80
|
+
next if response[:score] <= 3
|
81
81
|
|
82
82
|
# Set the confidence level based on the score
|
83
83
|
response[:dmp_id] = "DMP##{dmp['dmp_id']}"
|
@@ -197,7 +197,7 @@ module Uc3DmpId
|
|
197
197
|
}
|
198
198
|
)
|
199
199
|
response[:score] += last_names_matched + rors_matched + affil_names_matched
|
200
|
-
response[:notes] << 'contributor names and affiliations matched'
|
200
|
+
response[:notes] << 'contributor names and/or affiliations matched'
|
201
201
|
response
|
202
202
|
end
|
203
203
|
# rubocop:enable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
|
data/lib/uc3-dmp-id/version.rb
CHANGED