#A Collection of NLP notes
##N-grams
###Calculating unigram probabilities:
P( wi ) = count ( wi ) ) / count ( total number of words )
In english..
/* Adapted from Tom Cunningham's 'Data Warehousing with MySql' (www.meansandends.com/mysql-data-warehouse) */ | |
###### small-numbers table | |
DROP TABLE IF EXISTS numbers_small; | |
CREATE TABLE numbers_small (number INT); | |
INSERT INTO numbers_small VALUES (0),(1),(2),(3),(4),(5),(6),(7),(8),(9); | |
###### main numbers table | |
DROP TABLE IF EXISTS numbers; | |
CREATE TABLE numbers (number BIGINT); |
2 tone | |
2-step garage | |
4-beat | |
4x4 garage | |
8-bit | |
acapella | |
acid | |
acid breaks | |
acid house | |
acid jazz |
#!/usr/bin/env python | |
import netrc, urllib, urllib2 | |
from gmusicapi.api import Api | |
from xml.etree.ElementTree import * | |
lastfm__user = 'oquno' | |
api_key = 'your apikey' | |
def init(): | |
api = Api() |
#A Collection of NLP notes
##N-grams
###Calculating unigram probabilities:
P( wi ) = count ( wi ) ) / count ( total number of words )
In english..
echoprint.vbs
This script provides song identification service. It depends on two programs: ffmpeg (or sox) and ENMFP_codegen. Their path has to be set inside script.
nest.vb
LinqPad example
re_allmusic.vbs
foobar2000, Biography View script that can be used to display artist biography and album review according allmusic.com scrapped with regex
// Simple script that exports a users "Saved For Later" list out of Feedly | |
// as a JSON string. | |
// | |
// This was intended for use in the Google Chrome's "Inspector" tool so your | |
// mileage may vary if used in other contexts. | |
// | |
// Format of JSON is as follows: | |
// [ | |
// { | |
// title: "Title", |
# --------------------------------------------------------------------------- | |
# | |
# Description: This file holds all my BASH configurations and aliases | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management | |
# 4. Searching | |
# 5. Process Management |
mysql -uroot -pmysql | |
use `mifosplatform-tenants`; | |
CREATE TABLE `schema_version` ( | |
`version_rank` int(11) NOT NULL, | |
`installed_rank` int(11) NOT NULL, | |
`version` varchar(50) NOT NULL, | |
`description` varchar(200) NOT NULL, | |
`type` varchar(20) NOT NULL, |
Generates .M3U playlist of all YouTube videos in current subreddit listing for use in foobar2000 with the foo_youtube component.
This isn't maintained, look into R2YS - a foo_jscript_panel script for foobar2000.
Its use of the Reddit API requires an account though.
# first: | |
lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom | while read f; do sudo rm /usr/local/${f}; done | |
sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.* | |
# To recap, the best way (I've found) to completely uninstall node + npm is to do the following: | |
# go to /usr/local/lib and delete any node and node_modules | |
cd /usr/local/lib | |
sudo rm -rf node* |