graphaware / neo4j-nlp

NLP Capabilities in Neo4j
https://hume.graphaware.com/
335 stars 82 forks source link

Failed to invoke procedure `ga.nlp.annotate`: Caused by: java.lang.RuntimeException: No pipeline null #159

Closed sudeepdestiny closed 3 years ago

sudeepdestiny commented 4 years ago

Using 3.5.14 Neo4J and using all 3.5.14 Jars for plugins I am getting the NullPointerException when I call ga.nlp.annotate. I followed the instructions from https://github.com/graphaware/neo4j-nlp

MATCH (n:News)
CALL ga.nlp.annotate({text: n.text, id: id(n)})
YIELD result
MERGE (n)-[:HAS_ANNOTATED_TEXT]->(result)
RETURN result

Error:Failed to invoke procedure ga.nlp.annotate: Caused by: java.lang.RuntimeException: No pipeline null

security.log neo4j.log debug.log image

nickhalldev commented 4 years ago

Mine was resolved by adding the pipeline in. The default pipeline wasn't working. Hope this helps!

MATCH (n:News)
CALL ga.nlp.annotate({text: n.text, id: id(n), pipeline: 'my-pipeline-name'})
YIELD result
MERGE (n)-[:HAS_ANNOTATED_TEXT]->(result)
RETURN result