【问题标题】:official module in tensorflow examples at tensorflow.orgtensorflow.org 上 tensorflow 示例中的官方模块
【发布时间】:2020-06-30 10:56:48
【问题描述】:

我一直在关注张量流教程https://www.tensorflow.org/official_models/fine_tuning_bert

在第一个代码sn-p中,我看到了很多来自官方模块的导入

import numpy as np
import matplotlib.pyplot as plt

import tensorflow as tf

import tensorflow_hub as hub
import tensorflow_datasets as tfds
tfds.disable_progress_bar()

from official.modeling import tf_utils
from official import nlp
from official.nlp import bert

# Load the required submodules
import official.nlp.optimization
import official.nlp.bert.bert_models
import official.nlp.bert.configs
import official.nlp.bert.run_classifier
import official.nlp.bert.tokenization
import official.nlp.data.classifier_data_lib
import official.nlp.modeling.losses
import official.nlp.modeling.models
import official.nlp.modeling.networks

问题是我没有找到官方的模块名称。 我猜这个官方模块在某种程度上与特定问题或 BERT 模型(来自 tf-hub)有关。 由于 bert 模型使用特定的文本预处理,官方模块提供了这个。

那么,我在哪里可以找到、下载、使用和导入这个官方模块来工作?我一直在使用 python 3.7、tf-2.2、tf-hub-0.8.0

请帮帮我

【问题讨论】:

标签: python tensorflow nlp bert-toolkit


【解决方案1】:

TensorFlow的官方模块可以在TensorFlow Model Garden Repository找到

【讨论】:

  • 谢谢,我在那里获得了完整的文档和安装说明。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-10-26
  • 1970-01-01
  • 2018-03-02
  • 2021-09-25
相关资源
最近更新 更多