Find file
Fetching contributors…
Cannot retrieve contributors at this time
8 lines (7 sloc) 398 Bytes
% irb -r lib/minihal
>> brain =
=> #<Minihal::Brain:0x5e1e24 @network={}>
>> Minihal.string_to_sequences("ulysses.txt")).each { |sequence| brain.learn(sequence) }; nil
=> nil
>> brain.query.to_sentence
=> "He winked in a good stock of rock, sigh the other in the path of innumerable quires and marvellous exhibition of her voice: one sees us today i oughtnt to reflect."