Skip to content

Instantly share code, notes, and snippets.


Biranchi biranchi2018

  • Bangalore, India
View GitHub Profile
View Tensorflow Object Detection API
Tensorflow Object Detection API :
biranchi2018 /
Last active Aug 21, 2019
NLP - Calculating Bigram Tokens
import nltk'punkt')
import itertools
text = "today is 'Nayan's birthday. she loves ice cream. she is also fond of cream cake. we will celebrate her birthday with ice cream cake"
sentences = nltk.sent_tokenize(text)
words = [nltk.word_tokenize(sent) for sent in sentences]
biranchi2018 /
Last active Jun 5, 2021
Download a file using Python
import requests
url = ''
r = requests.get(url, allow_redirects=True)
with open('facebook.ico', 'wb') as f:
biranchi2018 /
Created Jun 5, 2021
Async await in Python
from asyncio import run
async def sum():
total = 0
for i in range(0,10):
print(f'i : {i}')
total += i
return total