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

Method __len__

numpy_ml/preprocessing/nlp.py:1060–1062  ·  view source on GitHub ↗

Return the number of tokens in the vocabulary

(self)

Source from the content-addressed store, hash-verified

1058 }
1059
1060 def __len__(self):
1061 """Return the number of tokens in the vocabulary"""
1062 return len(self._tokens)
1063
1064 def __iter__(self):
1065 """Return an iterator over the tokens in the vocabulary"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected