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

Method __init__

AutoML/darts-master/rnn/data.py:59–63  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

57
58class SentCorpus(object):
59 def __init__(self, path):
60 self.dictionary = Dictionary()
61 self.train = self.tokenize(os.path.join(path, 'train.txt'))
62 self.valid = self.tokenize(os.path.join(path, 'valid.txt'))
63 self.test = self.tokenize(os.path.join(path, 'test.txt'))
64
65 def tokenize(self, path):
66 """Tokenizes a text file."""

Callers

nothing calls this directly

Calls 2

tokenizeMethod · 0.95
DictionaryClass · 0.85

Tested by

no test coverage detected