pubannotation_evaluator 1.1.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/pubannotation-eval +4 -1
- data/lib/pubannotation_evaluator/pubannotation_evaluator.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a991e555a14f10b4dd49eee5d27bf53161f9819bfec2fd329f95bd943635fde9
|
4
|
+
data.tar.gz: 3149ca24ea2bf62f6d8bfe522d4f51da44d23ac975b7ae1a01d5396296699093
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e04fc7c9f0ae7a8f4a776b2ce65824697a0036d58a36c99126fb336385c4e71f23c486495bb0319835ccd0fd2376e7311e1f0296a56c2c180133f0974086f2d4
|
7
|
+
data.tar.gz: 9b5bddd6d398645df8e544273a2a0de80f781babcedaa9f44f1a391d858e2b61af0e731c256fe6a8bb86587e5391b39654e3546cdaf7571d0dd5eb4594699641
|
data/bin/pubannotation-eval
CHANGED
@@ -84,6 +84,9 @@ if verbose
|
|
84
84
|
|
85
85
|
false_negatives = comparison.select{|m| m[:study].nil? && m[:reference]}
|
86
86
|
evaluation[:false_negatives] = false_negatives unless false_negatives.empty?
|
87
|
+
|
88
|
+
true_positives = comparison.select{|m| m[:study] && m[:reference]}
|
89
|
+
evaluation[:true_positives] = true_positives unless true_positives.empty?
|
87
90
|
end
|
88
91
|
|
89
|
-
puts JSON.generate(evaluation)
|
92
|
+
puts JSON.generate(evaluation)
|
@@ -70,8 +70,8 @@ class PubannotationEvaluator
|
|
70
70
|
matches = find_denotation_matches(mmatches)
|
71
71
|
false_positives = study_denotations - matches.collect{|r| r[:study]}
|
72
72
|
false_negatives = reference_denotations - matches.collect{|r| r[:reference]}
|
73
|
-
|
74
|
-
|
73
|
+
study_denotations.each{|r| r.merge!(text:text[r[:span][:begin]...r[:span][:end]])}
|
74
|
+
reference_denotations.each{|r| r.merge!(text:text[r[:span][:begin]...r[:span][:end]])}
|
75
75
|
comparison = matches + false_positives.collect{|s| {study:s}} + false_negatives.collect{|r| {reference:r}}
|
76
76
|
[comparison, mmatches]
|
77
77
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pubannotation_evaluator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jin-Dong Kim
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-12-28 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A tool to evaluate the accuracy of a set of annotations.
|
14
14
|
email: jdkim@dbcls.rois.ac.jp
|
@@ -39,7 +39,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
requirements: []
|
42
|
-
rubygems_version: 3.
|
42
|
+
rubygems_version: 3.4.19
|
43
43
|
signing_key:
|
44
44
|
specification_version: 4
|
45
45
|
summary: It compares a set of annotations (study annotations) against another set
|