diff --git a/README.md b/README.md index c8f135c..e8e1f88 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 ```