cost 319 ms
我正在尝试使用 TensorFlow 2 使用 Elmo Embedding 并为 model.fit 命令获取此错误:'NoneType' object has no attribute 'outer_context' - I am trying to use Elmo Embedding using TensorFlow 2 and Getting this error for model.fit command: 'NoneType' object has no attribute 'outer_context'

使用 TF 2 从 TF-hub 导入 Elmo 嵌入层 # 创建模型 训练 我正在使用的数据: 我得到的错误:从错误看来存在数据结构错误或形状不匹配,但我不确定 任何帮助,将不胜感激。 ...

错误训练 ELMo - RuntimeError:张量 a (5158) 的大小必须与非单维 1 处的张量 b (5000) 的大小匹配 - Error training ELMo - RuntimeError: The size of tensor a (5158) must match the size of tensor b (5000) at non-singleton dimension 1

我正在尝试在 AllenNLP 上训练我自己的自定义 ELMo model。 以下错误RuntimeError: The size of tensor a (5158) must match the size of tensor b (5000) at non-singleton dimension ...

Allennlp:如何加载预训练的 ELMo 作为 allennlp model 的嵌入? - Allennlp: How to load a pretrained ELMo as the embedding of allennlp model?

我是 allennlp 的新成员。 我训练了一个 elmo model 将其作为嵌入应用于其他 allennlp 模型但失败了。 似乎我的 model 与配置提供的接口不兼容。 我能做什么? 我的 elmo 由 allennlp 使用以下命令训练: elmo.jso.net 与https://g ...

Keras:如何使用预训练的 ELMO 层加载模型 - Keras: How to load a model with pretrained ELMO Layer

我已经训练了一个具有预训练 ELMO 层的深度学习网络。 我已经使用下面的代码保存了模型和权重。 我现在需要加载负载,但我不确定什么是正确的方法。 我尝试了两种技术,但都失败了。 1:尝试只加载模型,但因 get_config 错误而失败 文件“C:\\temp\\Simon\\pe ...

如何将 ELMo 纳入 AllenNLP Guide 的简单分类 - How to incorporate ELMo into the simple classification of AllenNLP Guide

我是初学者,母语不是英语,所以我可能会问一些不好的问题。对不起! 最近学完了AllenNLP官方教程( https://guide.allennlp.org/training-and-prediction ),想把简单分类器的词嵌入改成ELMo。 此外,我想让简单分类器的架构更加复杂,以提高其准 ...

Tensorflow urllib.error.URLError:<urlopen error Errno 60 Operation timed out> - Tensorflow urllib.error.URLError: <urlopen error Errno 60 Operation timed out>

最近尝试在tensorflow中使用elmo,但是遇到了一些错误,如果你能帮助我,我将不胜感激。 这是我的 test_code: 然后我运行它,我的电脑会报告一个错误。 我找到了很多方法,但仍然无法解决这个问题,所以如果你能帮助我,我将不胜感激。 并且有所有错误报告。 ...

如何在不获取“函数调用堆栈:修剪”的情况下为标记化字符串生成 ELMo 嵌入? - How do I produce ELMo embeddings for tokenised strings without getting "Function call stack: pruned"?

我正在尝试为批量标记字符串生成 ELMo 嵌入。 但是我不断收到以下错误: 这里出了什么问题? 嵌入张量是否太大? 我正在使用Python 3.6.13 tensorflow==2.2.0 , tensorflow-estimator==2.2.0和tensorflow-hub==0.12.0 。 ...

ValueError: 层双向的输入 0 与层不兼容:预期 ndim=3,发现 ndim=4。 收到的完整形状:(无、120、1024、1024) - ValueError: Input 0 of layer bidirectional is incompatible with the layer: expected ndim=3, found ndim=4. Full shape received: (None, 120, 1024, 1024)

我正在尝试命名实体识别,这里是我的 x_train 和 x_test 的详细信息: Shape X_train: (3555, 120, 1024) Shape X_test: (887, 120, 1024) 错误是: ValueError: Input 0 of layer bidirecti ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM