aboutsummaryrefslogtreecommitdiff
path: root/src/windows
diff options
context:
space:
mode:
authorBobby <[email protected]>2022-12-02 19:15:04 -0500
committerBobby <[email protected]>2022-12-02 19:15:04 -0500
commit911fecc1940935523fc223e142e84f9cecf600a7 (patch)
tree54db2784df71883d64edd82589d08b7fc73f40c8 /src/windows
parent2fbbc2c07f306c6edd1ab543b03b6fc905b9fa3a (diff)
downloadRedditEngagementPrediction-911fecc1940935523fc223e142e84f9cecf600a7.tar.xz
RedditEngagementPrediction-911fecc1940935523fc223e142e84f9cecf600a7.zip
Fixed SSL Issues
Diffstat (limited to 'src/windows')
-rw-r--r--src/windows/modeltrainer.py8
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')