Module: BatchExperiment::UKP5Extractor
- Extended by:
- Extractor
- Defined in:
- lib/batch_experiment/sample_extractors.rb
Overview
Extractor for the output of the run_ukp5.out program available at github.com/henriquebecker91/masters. Not of interest for the majority of the users of this gem. Kept as example, and for this gem author personal use.
Class Method Summary collapse
Methods included from Extractor
extract, extract_from_lines, get_field, get_hfield, names
Class Method Details
.extract_from_lines(lines) ⇒ Object
63 64 65 66 67 |
# File 'lib/batch_experiment/sample_extractors.rb', line 63 def self.extract_from_lines(lines) ['Seconds', 'ext_time', 'ext_mem', 'opt'].map do | label | Extractor.get_field(lines, label) end end |
.names ⇒ Object
59 60 61 |
# File 'lib/batch_experiment/sample_extractors.rb', line 59 def self.names ['internal time', 'external time', 'external memory', 'opt'] end |