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

Method shape

numpy_ml/preprocessing/nlp.py:1093–1095  ·  view source on GitHub ↗

The number of unique word tokens in the vocabulary

(self)

Source from the content-addressed store, hash-verified

1091
1092 @property
1093 def shape(self):
1094 """The number of unique word tokens in the vocabulary"""
1095 return self._tokens.shape
1096
1097 def most_common(self, n=5):
1098 """Return the top `n` most common tokens in the corpus"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected