Skip to content
This repository was archived by the owner on Sep 25, 2025. It is now read-only.
This repository was archived by the owner on Sep 25, 2025. It is now read-only.

Cannot import run_classifier_with_tfhub #556

@sddoliver

Description

@sddoliver

I'm running the tutorial without any changes as posted here, https://colab.research.google.com/github/tensorflow/tpu/blob/master/tools/colab/bert_finetuning_with_cloud_tpus.ipynb .
The line 'import run_classifier_with_tfhub' does not run, and gives a module not found error: 'ModuleNotFoundError: No module named 'run_classifier_with_tfhub''

Since I've run the earlier lines without error:
`import sys

!test -d bert_repo || git clone https://github.com/google-research/bert/blob/master bert_repo
if not 'bert_repo' in sys.path:
sys.path += ['bert_repo']`

I've checked help(bert_repo), and while it does list all of the other functions being imported in here, it does not list run_classifier_with_tfhub. As this issue was in #420 I tried to update bert_repo, pip install bert_repo --upgrade, and bert, pip install bert --upgrade, but both still give module not found.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions