MCPcopy Index your code
hub / github.com/lazyprogrammer/machine_learning_examples / add2dict

Function add2dict

hmm_class/frost.py:35–38  ·  view source on GitHub ↗
(d, k, v)

Source from the content-addressed store, hash-verified

33
34
35def add2dict(d, k, v):
36 if k not in d:
37 d[k] = []
38 d[k].append(v)
39
40for line in open('robert_frost.txt'):
41 tokens = remove_punctuation(line.rstrip().lower()).split()

Callers 1

frost.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected