Class: Kreuzberg::Config::KeywordYakeParams
- Inherits:
-
Object
- Object
- Kreuzberg::Config::KeywordYakeParams
- Defined in:
- lib/kreuzberg/config.rb
Overview
YAKE keyword extraction parameters
Instance Attribute Summary collapse
-
#window_size ⇒ Object
readonly
Returns the value of attribute window_size.
Instance Method Summary collapse
-
#initialize(window_size: 2) ⇒ KeywordYakeParams
constructor
A new instance of KeywordYakeParams.
- #to_h ⇒ Object
Constructor Details
#initialize(window_size: 2) ⇒ KeywordYakeParams
Returns a new instance of KeywordYakeParams.
668 669 670 |
# File 'lib/kreuzberg/config.rb', line 668 def initialize(window_size: 2) @window_size = window_size.to_i end |
Instance Attribute Details
#window_size ⇒ Object (readonly)
Returns the value of attribute window_size.
666 667 668 |
# File 'lib/kreuzberg/config.rb', line 666 def window_size @window_size end |
Instance Method Details
#to_h ⇒ Object
672 673 674 |
# File 'lib/kreuzberg/config.rb', line 672 def to_h { window_size: @window_size } end |