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.
654 655 656 |
# File 'lib/kreuzberg/config.rb', line 654 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.
652 653 654 |
# File 'lib/kreuzberg/config.rb', line 652 def window_size @window_size end |
Instance Method Details
#to_h ⇒ Object
658 659 660 |
# File 'lib/kreuzberg/config.rb', line 658 def to_h { window_size: @window_size } end |