pubannotation_evaluator 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ba6d5024226dba72a62356ced9473f6d9c3d0761bf2591240a9463d539b9d47
|
4
|
+
data.tar.gz: 5fc854a7de2767f26b57d02e7bbf5b371613a08f49a10c3fed9aa2a9e055b2b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57c31f7d5c7d4a9400ceed1f582c92c093bf2ea5d47960d57a24b9c1d99cf6e5d9c94e6f138a298f6b0213b01d6bf562d44147ce964a94285aa8182a45ce74e5
|
7
|
+
data.tar.gz: 9e6bb76a8db19410bd4a66c8442b0cc19a5b50397c63d134bf9128b13963071cd015604588a073ad2c1b3ee91bba76f10ffca2c75ff8a9f8774026b13e26fca2
|
@@ -83,8 +83,11 @@ class PubannotationEvaluator
|
|
83
83
|
mmatches = []
|
84
84
|
study_denotations.each do |s|
|
85
85
|
r_begin = reference_denotations.bsearch_index{|r| r[:span][:end] > s[:span][:begin]}
|
86
|
+
break if r_begin.nil?
|
87
|
+
|
86
88
|
r_end = reference_denotations.bsearch_index{|r| r[:span][:begin] > s[:span][:end]}
|
87
89
|
r_end = r_end.nil? ? -1 : r_end - 1
|
90
|
+
|
88
91
|
reference_denotations[r_begin .. r_end].each do |r|
|
89
92
|
relatedness = get_relatedness_of_denotations(s, r, text)
|
90
93
|
mmatches << {study:s, reference:r, weight:relatedness} if relatedness > 0
|