Class: Roseflow::Text::TokenizedText

Inherits:
Dry::Struct
  • Object
show all
Defined in:
lib/roseflow/text/tokenized_text.rb

Instance Method Summary collapse

Instance Method Details

#to_sObject



15
16
17
# File 'lib/roseflow/text/tokenized_text.rb', line 15

def to_s
  text
end

#token_countObject



11
12
13
# File 'lib/roseflow/text/tokenized_text.rb', line 11

def token_count
  tokens.count
end