Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
04-03-2020 03:44 AM
I'm using David Allen's article here to get the NLP plugin through graphware
up and running locally. https://medium.com/neo4j/using-nlp-in-neo4j-ac40bc92196f
Failed to invoke procedure
ga.nlp.annotate: Caused by: java.lang.RuntimeException: No pipeline null
Error message
Showing that I do have a pipeline
Plugins and DB version
Config file does include the following
dbms.unmanaged_extension_classes=com.graphaware.server=/graphaware
com.graphaware.runtime.enabled=true
com.graphaware.module.NLP.1=com.graphaware.nlp.module.NLPBootstrapper
dbms.security.procedures.whitelist=ga.nlp.*
I've seen a lot of people in the community have some heap space issues, but I've changed the query to just try and run with 1 tweet with no luck. I changed the default assumption to a tweet to be that it is English and that didn't work. Could definitely be a beginner issue where I'm not routed to the pipeline correctly.
I definitely do have a pipeline and got a success response when I applied the default pipeline.
CALL ga.nlp.processor.pipeline.default("customStopWords")
Thanks for any help!
Solved! Go to Solution.
04-04-2020 01:54 AM
Can you try setting the pipeline in the annotate procedure like this:
MATCH (t:Tweet {language: "en"})
CALL ga.nlp.annotate({
text: t.text,
id: id(t),
pipeline : "customStopWords"
}) YIELD result
MERGE (t)-[:HAS_ANNOTATED_TEXT]->(result)
RETURN count(result)
Even if I would also have expected it to use the default pipeline if set.
04-04-2020 01:54 AM
Can you try setting the pipeline in the annotate procedure like this:
MATCH (t:Tweet {language: "en"})
CALL ga.nlp.annotate({
text: t.text,
id: id(t),
pipeline : "customStopWords"
}) YIELD result
MERGE (t)-[:HAS_ANNOTATED_TEXT]->(result)
RETURN count(result)
Even if I would also have expected it to use the default pipeline if set.
04-04-2020 02:59 AM
This worked. Thanks!!
So evidently the setting of a default pipeline isn't working.
All the sessions of the conference are now available online