Neoj4 GCP error: "The requested URL /v1/documents:classifyText?key=apiKey was not found on this server"
Neoj4 GCP error: "The requested URL /v1/documents:classifyText?key=apiKey was not found on this server"
我正在尝试弄清楚如何使用 Neoj4 Desktop 处理 NLP blog。一切正常,直到文本分类时刻:
CALL apoc.periodic.iterate("
// get all articles
MATCH (node:Article) RETURN node
","
// classify each article
CALL apoc.nlp.gcp.classify.graph(node, {
// we retrieve gcp api key from static value storage
key: apoc.static.get('gcp.apiKey'),
// node property that contains the text
nodeProperty: 'content',
write:true
}) YIELD graph RETURN distinct 'done'",
{batchSize:10})
它没有返回类别,而是 returns "The requested URL /v1/documents:classifyText?key=apiKey was not found on this server" 错误
可能是有 GCP 凭据的问题,但我已经按照建议做了所有事情。
感谢阅读我的博客post! :)
请尝试以下命令:
RETURN apoc.static.get('gcp.apiKey')
它return有什么用吗?它应该 return 你的 google API 键。如果它不起作用,您可以随时尝试将 API 键复制到查询中。另一方面,如果 apoc.static.get
按预期工作,可以尝试 在 google 控制台中启用您的自然语言 API。这可能是一个问题。
我正在尝试弄清楚如何使用 Neoj4 Desktop 处理 NLP blog。一切正常,直到文本分类时刻:
CALL apoc.periodic.iterate("
// get all articles
MATCH (node:Article) RETURN node
","
// classify each article
CALL apoc.nlp.gcp.classify.graph(node, {
// we retrieve gcp api key from static value storage
key: apoc.static.get('gcp.apiKey'),
// node property that contains the text
nodeProperty: 'content',
write:true
}) YIELD graph RETURN distinct 'done'",
{batchSize:10})
它没有返回类别,而是 returns "The requested URL /v1/documents:classifyText?key=apiKey was not found on this server" 错误
可能是有 GCP 凭据的问题,但我已经按照建议做了所有事情。
感谢阅读我的博客post! :)
请尝试以下命令:
RETURN apoc.static.get('gcp.apiKey')
它return有什么用吗?它应该 return 你的 google API 键。如果它不起作用,您可以随时尝试将 API 键复制到查询中。另一方面,如果 apoc.static.get
按预期工作,可以尝试 在 google 控制台中启用您的自然语言 API。这可能是一个问题。