【发布时间】:2020-12-21 19:07:31
【问题描述】:
我在 Google Cloud Functions 上使用 Python。对于包 corenlp,我需要设置 jar 文件夹的路径。我通常在本地计算机上做瘦:
os.environ["CORENLP_HOME"] = r'/home/user/stanfordnlp_resources/stanford-corenlp-latest/stanford-corenlp-4.1.0/'
但是如何在 Google Cloud Functions 上执行此操作?我已经将文件夹上传到bucket,我需要在Python中设置bucket上文件夹的路径。
【问题讨论】:
标签: python google-cloud-storage boto