(self, fname)
| 20 | #Use it exactly as the regular CorpusReader from the rnnlm.py |
| 21 | class FastCorpusReader: |
| 22 | def __init__(self, fname): |
| 23 | self.fname = fname |
| 24 | self.f = open(fname, 'rb') |
| 25 | def __iter__(self): |
| 26 | #This usage of mmap is for a Linux\OS-X |
| 27 | #For Windows replace prot=mmap.PROT_READ with access=mmap.ACCESS_READ |
nothing calls this directly
no outgoing calls
no test coverage detected