Skip to content

Instantly share code, notes, and snippets.

@Abirdcfly
Abirdcfly / 📊 Weekly development breakdown
Last active Dec 7, 2021
📊 Weekly development breakdown
View 📊 Weekly development breakdown
Go 5 hrs 21 mins ███████████▏░░░░░░░░░ 53.5%
YAML 3 hrs 21 mins ███████░░░░░░░░░░░░░░ 33.6%
Bash 23 mins ▊░░░░░░░░░░░░░░░░░░░░ 3.9%
Other 20 mins ▋░░░░░░░░░░░░░░░░░░░░ 3.4%
C 15 mins ▌░░░░░░░░░░░░░░░░░░░░ 2.6%
View hmm_viterbi.py
# coding=utf-8
prob_start = []
prob_trans = []
prob_emit = []
MIN_FLOAT = -3.14e100
STATE = {0: "B", 1: "E", 2: "M", 3: "S"}
def load_dicts(filename="hmm_model.utf8"):