如何修复尝试加载模型时出现的以下错误“加载模型时出现 KeyError: 'CaseFoldUTF8'”

bal*_*nan 9 python-3.x tensorflow2.0

加载模型时观察KeyError:'CaseFoldUTF8' while loading the model我使用来自 tf-hub 的预训练 BERT 进行了微调

xma*_*tas 23

我遇到了同样的错误。import tensorflow_text在顶部添加对我有用。