Class: UKP5Extractor

Inherits:
Object
  • Object
show all
Includes:
Extractor
Defined in:
lib/batch_experiment/sample_extractors.rb

Instance Method Summary collapse

Methods included from Extractor

#extract, get_field, get_hfield

Instance Method Details

#extract_from_lines(lines) ⇒ Object



28
29
30
31
32
# File 'lib/batch_experiment/sample_extractors.rb', line 28

def extract_from_lines(lines)
  ['Seconds', 'ext_time', 'ext_mem', 'opt'].map do | label |
    Extractor.get_field(lines, label)
  end
end

#namesObject



24
25
26
# File 'lib/batch_experiment/sample_extractors.rb', line 24

def names
  ['internal time', 'external time', 'external memory', 'opt']
end