module MarkovTextGenerator
Constants
- VERSION
Public Class Methods
logger()
click to toggle source
# File lib/markov_text_generator.rb, line 26 def logger @logger ||= Logger.new $stdout end
new()
click to toggle source
@example
model = MarkovTextGenerator.new model.train 'hello world, hello buddy, hello world' model.predict_next_word_for 'hello' #=> 'world' # Most likely
# File lib/markov_text_generator.rb, line 22 def new Api::Model.new end
root()
click to toggle source
# File lib/markov_text_generator.rb, line 30 def root @root ||= Pathname File.expand_path('../../', __FILE__) end