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

Method n_words

numpy_ml/preprocessing/nlp.py:1088–1090  ·  view source on GitHub ↗

The total number of words in the corpus

(self)

Source from the content-addressed store, hash-verified

1086
1087 @property
1088 def n_words(self):
1089 """The total number of words in the corpus"""
1090 return sum(self.counts.values())
1091
1092 @property
1093 def shape(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected