diff options
| author | Bobby <[email protected]> | 2022-12-02 19:15:35 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-12-02 19:15:35 -0500 |
| commit | 87bc7ff187633aacdedcb48bc4f96d04a20a9444 (patch) | |
| tree | 54db2784df71883d64edd82589d08b7fc73f40c8 /src/windows | |
| parent | 6496fb95432618f64cf23be0cd0eac362b3af3ed (diff) | |
| parent | 44991d1734e5474c546c87acffebb080698782cc (diff) | |
| download | RedditEngagementPrediction-87bc7ff187633aacdedcb48bc4f96d04a20a9444.tar.xz RedditEngagementPrediction-87bc7ff187633aacdedcb48bc4f96d04a20a9444.zip | |
Merge pull request #10 from luciferreeves/main
Fixed SSL
Diffstat (limited to 'src/windows')
| -rw-r--r-- | src/windows/modeltrainer.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/windows/modeltrainer.py b/src/windows/modeltrainer.py index 1d332fe..6664b57 100644 --- a/src/windows/modeltrainer.py +++ b/src/windows/modeltrainer.py @@ -11,6 +11,14 @@ from nltk.stem import SnowballStemmer from scipy.sparse import hstack from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.preprocessing import LabelBinarizer +import ssl + +try: + _create_unverified_https_context = ssl._create_unverified_context +except AttributeError: + pass +else: + ssl._create_default_https_context = _create_unverified_https_context warnings.filterwarnings('ignore') nltk.download('stopwords') |
