Class: Roseflow::Text::WordSplitter
- Inherits:
-
RecursiveCharacterSplitter
- Object
- Splitter
- RecursiveCharacterSplitter
- Roseflow::Text::WordSplitter
- Defined in:
- lib/roseflow/text/word_splitter.rb
Constant Summary
Constants inherited from RecursiveCharacterSplitter
RecursiveCharacterSplitter::SEPARATORS
Instance Attribute Summary
Attributes inherited from RecursiveCharacterSplitter
Instance Method Summary collapse
-
#initialize(separators = [" "], **kwargs) ⇒ WordSplitter
constructor
A new instance of WordSplitter.
Methods inherited from RecursiveCharacterSplitter
Methods inherited from Splitter
Constructor Details
#initialize(separators = [" "], **kwargs) ⇒ WordSplitter
Returns a new instance of WordSplitter.
8 9 10 11 |
# File 'lib/roseflow/text/word_splitter.rb', line 8 def initialize(separators = [" "], **kwargs) super(**kwargs) @separators = separators end |