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: 6fa609f2eaa40072aaf68f19d943908cf959c68c951cfabe7c530fae96efdbe8
4
- data.tar.gz: 66e92d37b5db14676152c17d777ff25071844e3e4297ec8bb5cd4633cc867470
3
+ metadata.gz: 1ba6d5024226dba72a62356ced9473f6d9c3d0761bf2591240a9463d539b9d47
4
+ data.tar.gz: 5fc854a7de2767f26b57d02e7bbf5b371613a08f49a10c3fed9aa2a9e055b2b7
5
5
  SHA512:
6
- metadata.gz: ca65f506b81afaa8eb2fc8af8acebda766db0a66ec8d317796df7934ed6f92227ba7364004f6c7bfe507c790c067bea67d4887c7137b2cf980f35fe6efcdca7d
7
- data.tar.gz: '0607055296bb34c586a7d8c03e91a71d5781a76478ae1673501dc29fe85eeda0f55e6e10584b906d9b2b8268bbf08cefef7815328723dee20cce16c8b5cf912a'
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pubannotation_evaluator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jin-Dong Kim