问题描述
我正在尝试通过 CSV 添加词汇表。我把 CSV 放在我的谷歌存储上。我收到此错误:
google.api_core.exceptions.InvalidArgument: 400 Failed to parse content of input file. Error: Not enough valid languages in CSV file. Must have terms for at least two different languages. num_valid_languages_in_csv = 0
我的 CSV 非常简单。我确保我保存在 utf-8 中。我还在代码顶部添加了 # -*- coding: utf-8 -*-
。
Liz,栗子
Tom,汤姆
Nancy,楠西
代码是从文档中复制的。