Skip to content
This repository was archived by the owner on Dec 22, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Scripts/Miscellaneous/Fake_news_web/feature.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion Scripts/Miscellaneous/Unwrap_video/unwrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down