【发布时间】:2019-08-15 03:03:57
【问题描述】:
我正在构建 Dataflow 管道以读取 CSV,通过 Google Cloud NLP API 执行情感分析并将结果发送到 BigQuery。
当执行情感分析的函数获取 pcollection 时,我会出现上述错误。
我正在考虑将 Pcollection 拆分为小的 Pcollection,以便处理 NLP API 中的引用限制。
(p
| 'ReadData' >> beam.io.textio.ReadFromText(src_path)
| 'ParseCSV' >> beam.ParDo(Analysis())
| 'WriteToBigQuery' >> ...
)
【问题讨论】:
标签: python-2.7 nlp google-cloud-dataflow apache-beam