def diri(table):
t = []<EOL>for i in table:<EOL><INDENT>a = [j + <NUM_LIT:1> for j in i]<EOL>t.append(np.ndarray.tolist(np.random.mtrand.dirichlet(a)))<EOL><DEDENT>return t<EOL>
from SparCC - "randomly draw from the corresponding posterior
Dirichlet distribution with a uniform prior"