Skip to content

Instantly share code, notes, and snippets.

View philip-sterne's full-sized avatar

Philip Sterne philip-sterne

  • Cape Town
View GitHub Profile
# This short script ues some hypothetical numbers to calculate whether or not
# to operate on a possibly-cancerous lump, given the results of a screening test
u = {
"healthy":100.0,
"late-stage cancer":-10000.0,
"surgery": -50.0,
}
import heapq
from urllib.request import urlopen
import shutil
import gzip
import os
from collections import defaultdict
from bitarray import bitarray
import pickle
#!/usr/bin/env python
# -*- coding: utf-8 -*-
######################
# Speech recognition #
######################
# 1. Work through the following resources:
# Viterbi algorithm. (n.d.). In Wikipedia. Retrieved November 9, 2016, from
# https://en.wikipedia.org/wiki/Viterbi_algorithm
# The 44 Phonemes in English. (n.d.). Retrieved November 9, 2016, from
# http://www.dyslexia-reading-well.com/44-phonemes-in-english.html
Verifying that +sterne is my blockchain ID. https://onename.com/sterne