Skip to content
This repository was archived by the owner on Dec 22, 2023. It is now read-only.

Commit 5be3f87

Browse files
authored
Merge pull request #638 from Srishti-Ahuja/master
not x in changed to x not in
2 parents 9d5d2ad + 2e8e79c commit 5be3f87

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Scripts/Miscellaneous/Fake_news_web/feature.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def remove_punctuation_stopwords_lemma(sentence):
2121
lemmatizer = WordNetLemmatizer()
2222
sentence = re.sub(r"[^\w\s]", "", sentence)
2323
words = nltk.word_tokenize(sentence) # tokenization
24-
words = [w for w in words if not w in stop_words]
24+
words = [w for w in words if w not in stop_words]
2525
for word in words:
2626
filter_sentence = (
2727
filter_sentence + " " + str(lemmatizer.lemmatize(word)).lower()

Scripts/Miscellaneous/Unwrap_video/unwrap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# process each video in media folder
55
for video in glob.glob("media/*"):
66
# only process videos, ignore generated images
7-
if not "jpeg" in video:
7+
if "jpeg" not in video:
88
# get video resolution
99
try:
1010
cwd = os.getcwd()

0 commit comments

Comments
 (0)