MCPcopy Create free account
hub / github.com/OUCMachineLearning/OUCML / __init__

Method __init__

AutoML/darts-master/rnn/data.py:8–12  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

6
7class Dictionary(object):
8 def __init__(self):
9 self.word2idx = {}
10 self.idx2word = []
11 self.counter = Counter()
12 self.total = 0
13
14 def add_word(self, word):
15 if word not in self.word2idx:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected