~/talk

Ruby-us Hagrid: Writing Harry Potter with Ruby

Talkat RubyConf 2018 · 2018-11-28..11-30· [machine-learning]
linkedin:apeattie
slides:none on file

Claims that Ruby writes a new Harry Potter automatically using basic NLP are demonstrated with concrete code and empirical results: plain text books tokenized into ~20k unique words, a hash of continuations, and n‑gram models (bi/tri/4‑gram) built in Ruby. Generation strategies—greedy, uniform random, and weighted random sampling—are compared, showing loops and garbage for greedy, gibberish for uniform, and convincing pastiche with tri/4‑grams; implementation fits in 20 lines of Ruby and sometimes reproduces near‑book phrases.

AI-written summary · about

  1. 0:00Start
  2. 0:36Rubeus Hagrid Writing Harry Potter with Ruby
  3. 7:16Learning Stage
  4. 8:27Tokenization
  5. 10:31The Greedy Algorithm
  6. 14:12The Uniform Random Algorithm
  7. 16:34The Weighted Out Random Algorithm
  8. 25:08Pay Attention to Our Failures
  9. 25:59Finding a Good Metaphor for a Problem
  10. 27:44Graph Coloring
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.