From 9b198c48986c0e354c6458ff74cd75474f612930 Mon Sep 17 00:00:00 2001 From: Preston Richey Date: Mon, 12 Jan 2015 23:06:16 -0600 Subject: [PATCH] Fix deprecation warning --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 139f4f9..abad733 100644 --- a/README.md +++ b/README.md @@ -135,10 +135,10 @@ The secondary function is the "interesting keywords" list. For example, I use th ``` ruby top100 = model.keywords.take(100) -tokens = Ebooks::NLP.tokenize(tweet[:text]) +tokens = Ebooks::NLP.tokenize(tweet.text) if tokens.find { |t| top100.include?(t) } - bot.favorite(tweet[:id]) + favorite(tweet) end ```