Class: Quarry::TextPipeline
- Inherits:
-
Object
- Object
- Quarry::TextPipeline
- Defined in:
- lib/quarry_rb/text_pipeline.rb
Instance Attribute Summary collapse
-
#text_pipeline ⇒ Object
readonly
Returns the value of attribute text_pipeline.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(tp = nil) ⇒ TextPipeline
constructor
A new instance of TextPipeline.
- #process_text(data_set, text, create_features = false) ⇒ Object
Constructor Details
#initialize(tp = nil) ⇒ TextPipeline
Returns a new instance of TextPipeline.
4 5 6 |
# File 'lib/quarry_rb/text_pipeline.rb', line 4 def initialize(tp = nil) @text_pipeline = tp || Quarry::ImplTextPipeline.new end |
Instance Attribute Details
#text_pipeline ⇒ Object (readonly)
Returns the value of attribute text_pipeline.
3 4 5 |
# File 'lib/quarry_rb/text_pipeline.rb', line 3 def text_pipeline @text_pipeline end |
Class Method Details
.standard_pipeline ⇒ Object
12 13 14 |
# File 'lib/quarry_rb/text_pipeline.rb', line 12 def self.standard_pipeline new(Quarry::Preprocessing::Text.standard_pipeline) end |