Sha256: 931fb9c6a0d27b760bcaaffa53068afa1eb54ecab2f9c2fef69d603ef1498858

Contents?: true

Size: 455 Bytes

Versions: 6

Compression:

Stored size: 455 Bytes

Contents

module Quarry
  class TextPipeline
    attr_reader :text_pipeline
    def initialize(tp = nil)
      @text_pipeline = tp || Quarry::ImplTextPipeline.new
    end
    
    def process_text(data_set, text, create_features = false)
      ::Quarry::DataSet::Example.new(@text_pipeline.process_text(data_set.data_set, text, create_features))
    end
    
    def self.standard_pipeline
      new(Quarry::Preprocessing::Text.standard_pipeline)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
thera-0.0.8 lib/quarry_rb/text_pipeline.rb
thera-0.0.7 lib/quarry_rb/text_pipeline.rb
thera-0.0.6 lib/quarry_rb/text_pipeline.rb
thera-0.0.5 lib/quarry_rb/text_pipeline.rb
thera-0.0.4 lib/quarry_rb/text_pipeline.rb
thera-0.0.3 lib/quarry_rb/text_pipeline.rb