diff --git a/Scripts/Miscellaneous/Fake_news_web/feature.py b/Scripts/Miscellaneous/Fake_news_web/feature.py index 3f170edd0..1a9e3a077 100644 --- a/Scripts/Miscellaneous/Fake_news_web/feature.py +++ b/Scripts/Miscellaneous/Fake_news_web/feature.py @@ -21,7 +21,7 @@ def remove_punctuation_stopwords_lemma(sentence): lemmatizer = WordNetLemmatizer() sentence = re.sub(r"[^\w\s]", "", sentence) words = nltk.word_tokenize(sentence) # tokenization - words = [w for w in words if not w in stop_words] + words = [w for w in words if w not in stop_words] for word in words: filter_sentence = ( filter_sentence + " " + str(lemmatizer.lemmatize(word)).lower() diff --git a/Scripts/Miscellaneous/Unwrap_video/unwrap.py b/Scripts/Miscellaneous/Unwrap_video/unwrap.py index ec2427e41..911d14da9 100644 --- a/Scripts/Miscellaneous/Unwrap_video/unwrap.py +++ b/Scripts/Miscellaneous/Unwrap_video/unwrap.py @@ -4,7 +4,7 @@ # process each video in media folder for video in glob.glob("media/*"): # only process videos, ignore generated images - if not "jpeg" in video: + if "jpeg" not in video: # get video resolution try: cwd = os.getcwd()