reddit_utils module¶
-
reddit_utils.
find_context_fast
(word, min_context_amount=5)[source]¶ Return a context for a word after fast title traverse
Parameters: - word (str) – The word that needs context
- min_context_amount (int) – maximum number of contexts to find_context_fast
Returns: {word (str): context (list)} the resulting pair of word:contexts
Return type: (dict)
-
reddit_utils.
find_context_long
(word, min_context_amount=5, comment_depth=100)[source]¶ Return a context for a word after long comment traverse
Parameters: - word (str) – The word that needs context
- min_context_amount (int) – maximum number of contexts to find_context_fast
- comment_depth (int) – Maximum comment depth for traversal
Returns: {word (str): context (list)} the resulting pair of word:contexts
Return type: (dict)