我想使用Tensorflow Dataset api通过tensorflow Hub初始化我的数据集。我想使用dataset.map函数将我的文本数据转换为嵌入数据。我的Tensorflow版本是1.14。import tensorflow as tf...#Sentence_array=["I love Python", "python is
我想使用这个嵌入将文本分类为2类:import tensorflow as tfimport tensorflow_datasets as tfds
'embedding': 'https://tfhub.dev/google/universal-sentence-encoder-multilingual/3' EMBED
我想从这里试试通用句子编码器link 以下是我在Ubuntu 18.04和Jupyter Notebook上运行的代码 import tensorflow as tfembed = hub.Module("https://tfhub.dev/google/universal-sentence-encoder/2") "The quick brown fox jumps over the lazy dog.",
"I am a sente