Skip to content

Instantly share code, notes, and snippets.

View divamgupta's full-sized avatar

Divam Gupta divamgupta

View GitHub Profile
@divamgupta
divamgupta / vat_example.ipynb
Created May 31, 2019 16:23
Simple keras implementation of Virtual Adversarial Training .
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@divamgupta
divamgupta / distilbert_tokenise.js
Created March 25, 2022 05:55
Simple one file tokeniser for DistilBERT in javascript
vocab_string = `[PAD]
[unused0]
[unused1]
[unused2]
[unused3]
[unused4]
[unused5]
[unused6]
[unused7]
@divamgupta
divamgupta / fetch_tweets.js
Created April 11, 2019 08:26
Fetch tweets from twitter via phantomjs
/*
* Author Divam Gupta
This is a small script to fetch tweets of a given url ( handle / search )
*/
var page = require('webpage').create();
var fs = require('fs');