Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
fix CorpusReader (#10079)
Browse files Browse the repository at this point in the history
try to accelerate

update

Revert "update"

This reverts commit 7d409b5.

Revert "try to accelerate"

This reverts commit b7d93f9.
  • Loading branch information
sxjscience authored and szha committed Mar 12, 2018
1 parent 453fc23 commit 7e59d74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/mxnet/gluon/data/text/base.py
Expand Up @@ -20,7 +20,7 @@

"""Base classes for text datasets and readers."""

__all__ = ['WordLanguageReader']
__all__ = ['CorpusReader', 'WordLanguageReader']

import io
import os
Expand Down Expand Up @@ -67,7 +67,7 @@ def read(self):
if self._tokenizer:
samples = [self._tokenizer(s) for s in samples if s]
if self._flatten:
samples = flatten(samples)
samples = flatten_samples(samples)
else:
samples = [s for s in samples if s]
return SimpleDataset(samples)
Expand Down

0 comments on commit 7e59d74

Please sign in to comment.