the general algo goes like so:
for chunk in corpus:
e-step
m-step
gensim hacks in multiple passes:
from timeit import timeit | |
from ctypes import * | |
size = 10 | |
l = list() | |
arr = (c_int * size)() | |
def test(x): | |
for n in range(x): | |
l.append(n) |
from lxml import etree | |
class RangedTarget(etree.TreeBuilder): | |
""" | |
Extends the regular etree.TreeBuilder target to assign all elements | |
built two attributes: | |
ranged_tag_start = line number of the start tag | |
ranged_tag_end = line number of the end tag | |
To use this, you must feed the parser line by line, while assigning |
#!/bin/bash | |
set -e | |
function get_loopback(){ | |
# Detect the module number module-loopback is on | |
# If it isn't loaded, then load it. | |
loopback=`pactl list short modules | grep module-loopback | awk '{print $1}'` | |
if [ "$loopback" == "" ]; then | |
loopback=`pactl load-module module-loopback` | |
fi |
#!/usr/bin/env python3 | |
import sys | |
def merge(input_tex): | |
new_lines = [] | |
for c_line in input_tex: | |
# check for line comment | |
line = c_line |
def A(s, c): | |
if len(s) <= c: | |
return False | |
if s[c] == '0': | |
return B(s, c+1) | |
elif s[c] == '1': | |
return C(s, c+1) | |
def B(s, c): |
\documentclass{jhwhw} | |
\author{Christopher S. Corley} | |
\title{Class homework solutions} | |
\date{October 19, 2011} | |
\begin{document} | |
\problem{Some problem name} | |
blahblah | |
\solution |
the general algo goes like so:
for chunk in corpus:
e-step
m-step
gensim hacks in multiple passes:
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from node import Node | |
class LinkedList: | |
def __init__(self, iterable=None): | |
last = None | |
if iterable: | |
for item in reversed(iterable): |
This statement of purpose is part of my application to the Graduate Certificate in College Teaching program at UA.
http://education.ua.edu/academics/elpts/hea/college-teaching-certificate/
Click on "View Raw" for the letter.pdf to see the rendered PDF, or view the text below (ignore the computer mumbo-jumbo). Thanks!
\newcommand{\attn}[1]{{\color{red}#1}} | |
\newcommand{\desc}[1]{{\emph{\color{blue}#1}}} | |
\newcommand{\needcite}{\attn{\tiny{[cite]}}} |