scrappy 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 0.4.4 2011-07-11
2
+
3
+ * More details in test reports
4
+
1
5
  === 0.4.3 2011-07-11
2
6
 
3
7
  * Bugfix: missing files in Manifest
@@ -189,6 +189,7 @@ module Scrappy
189
189
  precision, recall, fscore = agent.send :metrics, new_output, new_extraction
190
190
  @results[predicate] ||= Hash.new(0.0)
191
191
  @results[predicate][:count] += 1
192
+ @results[predicate][:triples] = new_output.size
192
193
  @results[predicate][:fscore] += fscore
193
194
  @results[predicate][:precision] += precision
194
195
  @results[predicate][:recall] += recall
@@ -201,6 +202,7 @@ module Scrappy
201
202
  precision, recall, fscore = agent.send :metrics, new_output, new_extraction
202
203
  @results[type] ||= Hash.new(0.0)
203
204
  @results[type][:count] += 1
205
+ @results[type][:triples] = new_output.size
204
206
  @results[type][:fscore] += fscore
205
207
  @results[type][:precision] += precision
206
208
  @results[type][:recall] += recall
@@ -209,6 +211,7 @@ module Scrappy
209
211
  precision, recall, fscore = agent.send :metrics, output, extraction
210
212
  @results[:total] ||= Hash.new(0.0)
211
213
  @results[:total][:count] += 1
214
+ @results[:total][:triples] = output.size
212
215
  @results[:total][:fscore] += fscore
213
216
  @results[:total][:precision] += precision
214
217
  @results[:total][:recall] += recall
data/lib/scrappy.rb CHANGED
@@ -24,5 +24,5 @@ require 'scrappy/agent/blind_agent'
24
24
  require 'scrappy/agent/agent'
25
25
 
26
26
  module Scrappy
27
- VERSION = '0.4.3'
27
+ VERSION = '0.4.4'
28
28
  end
data/scrappy.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{scrappy}
5
- s.version = "0.4.3"
5
+ s.version = "0.4.4"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Jose Ignacio"]
data/views/test.haml CHANGED
@@ -40,10 +40,17 @@
40
40
 
41
41
  %h2 Details
42
42
  %p
43
+ %ul.detail
44
+ -(@results.keys-[:total]).each do |label|
45
+ %li
46
+ %span.name
47
+ =label
48
+ %span.date
49
+ =@results[label][:triples].to_i
43
50
  %ul.detail
44
51
  %li
45
52
  %span.name
46
- Triples
53
+ Total triples
47
54
  %span.date
48
55
  =@total
49
56
  %li
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 3
9
- version: 0.4.3
8
+ - 4
9
+ version: 0.4.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jose Ignacio