This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import json | |
| import praw | |
| reddit = praw.Reddit( | |
| client_id='', | |
| client_secret='', | |
| password='', | |
| user_agent='', | |
| username='') | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import math | |
| from nltk.corpus import cmudict | |
| from nltk.tokenize import RegexpTokenizer | |
| from nltk.tokenize import sent_tokenize | |
| d = cmudict.dict() | |
| tokenizer = RegexpTokenizer(r'\w+') | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import math | |
| from nltk.corpus import cmudict | |
| from nltk.tokenize import RegexpTokenizer | |
| from nltk.tokenize import sent_tokenize | |
| d = cmudict.dict() | |
| tokenizer = RegexpTokenizer(r'\w+') | |