Fix deprecation warning
This commit is contained in:
		
							parent
							
								
									596f41f15f
								
							
						
					
					
						commit
						9b198c4898
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -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 | ||||
| ``` | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Preston Richey
						Preston Richey