Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change a place of import io at onmt/io/TextDataset.py #55

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Mocchaso
Copy link

  • before: top of this python code
  • after: constructor of class ShardedTextCorpusIterator(object).

In before state, an error cannnot import name TextDataset was caused at onmt/IO.py.

I thought that this is because onmt/IO.py and onmt/TextDataset.py tried to import each other.
※reference: resolve ImportError: cannot import name (Japanese Qiita article)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant