MCPcopy Create free account
hub / github.com/clab/dynet / size

Method size

examples/python-utils/util.py:16–17  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

14 return Vocab(w2i)
15
16 def size(self):
17 return len(self.w2i.keys())
18
19#This corpus reader can be used when reading large text file into a memory can solve IO bottleneck of training.
20#Use it exactly as the regular CorpusReader from the rnnlm.py

Callers 2

BuildLMGraphMethod · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected