Skip to content

Instantly share code, notes, and snippets.

View shriphani's full-sized avatar

Shriphani Palakodety shriphani

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
longer : String -> String -> Nat
longer word1 word2 = let len1 = length word1
len2 = length word2 in
if len1 > len2 then len1 else len2
{
"id": "VcH7g0W1O_A",
"uploader": "DW News",
"uploader_id": "deutschewelleenglish",
"uploader_url": "http://www.youtube.com/user/deutschewelleenglish",
"channel_id": "UCknLrEdhRCp1aegoMqRaCZg",
"channel_url": "http://www.youtube.com/channel/UCknLrEdhRCp1aegoMqRaCZg",
"upload_date": "20190227",
"license": null,
"creator": null,
i
me
my
myself
we
our
ours
ourselves
you
you're
In [1]: from gensim.models import LdaModel, LdaMulticore
In [2]: lda = LdaModel.load('parkaland_gab_lda_20.model')
In [3]: lda.show_topics()
Out[3]:
[(19,
'0.022*"billboard" + 0.016*"louisville" + 0.014*"williams" + 0.014*"brian" + 0.011*"linux" + 0.009*"message" + 0.009*"kill" + 0.009*"appears" + 0.008*"reads" + 0.007*"steam"'),
(18,
'0.391*"#" + 0.022*"URL" + 0.013*"2a" + 0.013*"maga" + 0.010*"qanon" + 0.006*"&" + 0.006*"guncontrol" + 0.006*"twitter" + 0.005*"gabfam" + 0.005*"🇸"'),
➜ julia git:(d386e40c17) ./julia
_
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: https://docs.julialang.org
_ _ _| |_ __ _ | Type "?help" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.6.2 (2017-12-13 18:08 UTC)
_/ |\__'_|_|_|\__'_| |
|__/ | x86_64-linux-gnu
@shriphani
shriphani / convert_lfw_siamese_data.cpp
Last active December 4, 2016 15:12
Caffe LFW Training
//
// This script converts the lfw dataset to the leveldb format used
// by caffe to train siamese network.
// Usage:
// convert_lfw_data input_image_file input_label_file output_db_file
#include <fstream> // NOLINT(readability/streams)
#include <string>
#include "glog/logging.h"

Keybase proof

I hereby claim:

  • I am shriphani on github.
  • I am shriphani (https://keybase.io/shriphani) on keybase.
  • I have a public key whose fingerprint is 18E6 5FA3 EBD4 6066 F060 134E F961 7CDD 260D 3C31

To claim this, I am signing this object: