Module: MarkovTextGenerator::Api::Interface

Includes:
Utils
Included in:
Model
Defined in:
lib/markov_text_generator/api/interface.rb

Instance Method Summary collapse

Methods included from Utils

#make_linked_list

Instance Method Details

#generate(max_words) ⇒ Object



14
15
16
# File 'lib/markov_text_generator/api/interface.rb', line 14

def generate(max_words)
  fail NotImplementedError, max_words
end

#retrain(sentence) ⇒ Object



10
11
12
# File 'lib/markov_text_generator/api/interface.rb', line 10

def retrain(sentence)
  fail NotImplementedError, sentence
end

#train(sentence) ⇒ Object



6
7
8
# File 'lib/markov_text_generator/api/interface.rb', line 6

def train(sentence)
  fail NotImplementedError, sentence
end