Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Dec 22, 2023. It is now read-only.

Commit 2e8e79c

Browse files
not x in changed to x not in
1 parent ba570ba commit 2e8e79c

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 notw in stop_words]
24+
words = [w for w in words if wnot 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)

AltStyle によって変換されたページ (->オリジナル) /