Class: Roseflow::Tokenizer

Inherits:
Object
  • Object
show all
Defined in:
lib/roseflow/tokenizer.rb

Instance Method Summary collapse

Instance Method Details

#decode(input) ⇒ Object

Raises:

  • (NotImplementedError)


9
10
11
# File 'lib/roseflow/tokenizer.rb', line 9

def decode(input)
  raise NotImplementedError, "this class must be extended and the #decode method implemented"
end

#encode(input) ⇒ Object

Raises:

  • (NotImplementedError)


5
6
7
# File 'lib/roseflow/tokenizer.rb', line 5

def encode(input)
  raise NotImplementedError, "this class must be extended and the #encode method implemented"
end