如何格式化 CSV 文件以将多个文件导入 Google Cloud AutoML Translate?

How to format CSV file for importing multiple files to Google Cloud AutoML Translate?

我正在尝试使用 Python 客户端库将多个文件添加到我为 AutoMl Translate 创建的数据集中。我找不到要使用的 csv 文件的好例子。这是 link 到他们的 Python Client Library example code 将文件添加到数据集。

我在以下形式的存储桶中创建了一个 csv:

UNASSIGNED,gs://<bucket name>/x,gs://<bucket name>/y

我要在其中添加两个名为 x 和 y 的文件。 我收到以下错误:

google.api_core.exceptions.GoogleAPICallError: None No files to import. Please specify your input files. 

问题是我如何格式化 csv 文件。我要添加的每个文件都需要有自己的行,

正确的 csv 文件如下所示:

UNASSIGNED,gs://<bucket name>/x
UNASSIGNED,gs://<bucket name>/y