“在Neo4j社区版中调用APOC NLP过程失败”

os8fio9y  于 12个月前  发布在  其他
关注(0)|答案(1)|浏览(127)

我在尝试将APOC NLP GCP插件与Neo4j Community Edition一起使用时遇到问题。由于一些与UI相关的问题,我没有使用桌面UI,而是在浏览器中运行Neo4j。我已经下载了Neo4j Community Edition版本5.11.0 for Windows从这个链接:https://dist.neo4j.org/neo4j-community-5.11.0-windows.zip
我面临的问题是,我想使用apoc.nlp.gcp.graph方法进行自然语言处理(NLP)任务,但它似乎在APOC插件中不可用。当我写我的Cypher查询,我没有得到智能感知'gcp'下的'nlp';仅示出了“azure”。
我已经手动将以下插件放置在我的Neo4j插件文件夹中:

  • apoc-5.11.0-core
  • apoc-5.11.0-extended
  • 新语义学-5.7.0.0

我的Java开发工具包(JDK)版本是microsoft-jdk-17.0.8.1-windows-x64。我尝试按照本教程使用NLP和本体构建知识图:https://neo4j.com/developer/graph-data-science/build-knowledge-graph-nlp-ontologies/
当我运行以下Cypher查询时:

MATCH (a:Article {uri: "https://dev.to/lirantal/securing-a-nodejs--rethinkdb--tls-setup-on-docker-containers"})
CALL apoc.nlp.gcp.entities.stream(a, {
 nodeProperty: 'body',
 key: $key
})
YIELD node, value
SET node.processed = true
WITH node, value
UNWIND value.entities AS entity
RETURN entity
LIMIT 5;

我得到以下错误消息:

Neo.ClientError.Procedure.ProcedureNotFound
There is no procedure with the name `apoc.nlp.gcp.entities.stream` registered for this database instance. Please ensure you've spelled the procedure name correctly and that the procedure is properly deployed.

如何解决此问题并使apoc.nlp.gcp.graph方法在浏览器环境中运行的Neo4j Community Edition中可访问?

7dl7o3gd

7dl7o3gd1#

如文档所示,您还需要在plugins文件夹中安装apoc-nlp-dependencies-<version number>-all.jar文件(具有正确的版本号)。
您可以在here中查找该文件。

相关问题