Skip to content

Instantly share code, notes, and snippets.

View Shuv0Khan's full-sized avatar
🎯
Focusing

Abu Naweem Khan Shuv0Khan

🎯
Focusing
View GitHub Profile
@Shuv0Khan
Shuv0Khan / github.R
Created February 14, 2023 22:03 — forked from z3tt/github.R
Configure GitHub for Rstudio
#### 1. Sign up at GitHub.com ################################################
## If you do not have a GitHub account, sign up here:
## https://github.com/join
# ----------------------------------------------------------------------------
#### 2. Install git ##########################################################
## If you do not have git installed, please do so:
@Shuv0Khan
Shuv0Khan / python_progress_bar.py
Last active March 7, 2022 17:22
A simple progress bar from stackoverflow. The answer permalink is in the doc
# Print iterations progress
def printProgressBar (iteration, total, prefix = '', suffix = '', decimals = 1, length = 100, fill = '█', printEnd = "\r"):
"""
Source - https://stackoverflow.com/a/34325723/9573439
Call in a loop to create terminal progress bar
@params:
iteration - Required : current iteration (Int)
total - Required : total iterations (Int)
prefix - Optional : prefix string (Str)
@Shuv0Khan
Shuv0Khan / PythonGists.md
Last active March 20, 2022 19:41
Userful Python Scripts
@Shuv0Khan
Shuv0Khan / sentiment_analysis.py
Created February 23, 2022 17:07
Sentiment Analysis with VADER and Emotion Detection with DistillBERT with visualizations
import traceback
from collections import defaultdict
import matplotlib.pyplot as plt
import nltk
from flair.data import Sentence
from flair.models import TextClassifier
from nltk import word_tokenize
from nltk.sentiment.vader import SentimentIntensityAnalyzer
from transformers import pipeline