MCPcopy Create free account
hub / github.com/ddbourgin/numpy-ml / codes

Method codes

numpy_ml/preprocessing/nlp.py:511–513  ·  view source on GitHub ↗

A list with the Huffman code for each unique token in `text`

(self)

Source from the content-addressed store, hash-verified

509
510 @property
511 def codes(self):
512 """A list with the Huffman code for each unique token in `text`"""
513 return list(self._code2item.keys())
514
515 def _counter(self, text):
516 counts = {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected