(self, path)
| 19 | |
| 20 | class Corpus(object): |
| 21 | def __init__(self, path): |
| 22 | self.dictionary = Dictionary() |
| 23 | self.train = self.tokenize(os.path.join(path, 'train.txt')) |
| 24 | self.valid = self.tokenize(os.path.join(path, 'valid.txt')) |
| 25 | self.test = self.tokenize(os.path.join(path, 'test.txt')) |
| 26 | |
| 27 | def tokenize(self, path): |
| 28 | """Tokenizes a text file.""" |
nothing calls this directly
no test coverage detected