Skip to content

Instantly share code, notes, and snippets.

View standalone.py
import numpy as np
import itertools as it
def normalize(x):
return x / np.sum(x)
def normalizerow(x):
return (x.T / np.sum(x, axis=1)).T
def normalizecol(x):
View gist:414842
ENTITY book_lines
{
int book_line_id,
string line,
int source,
int linenum,
int created_at,
int updated_at
PRIMARY(linenum, source)
}