Skip to content

Instantly share code, notes, and snippets.

@ikwattro
Last active July 8, 2018 11:56
Show Gist options
  • Save ikwattro/0e6a70d01a52da16eb79ee58ca7c082d to your computer and use it in GitHub Desktop.
Save ikwattro/0e6a70d01a52da16eb79ee58ca7c082d to your computer and use it in GitHub Desktop.
NLP with Whitelist
CALL ga.nlp.createSchema
CALL ga.nlp.processor.addPipeline({
name:"whitelist", 
whitelist:"hello,john,ibm", 
textProcessor:"com.graphaware.nlp.enterprise.processor.EnterpriseStanfordTextProcessor", 
processingSteps:{tokenize:true, ner:true}})
CALL ga.nlp.annotate({text:"Hello, my name is John and I worked at IBM.", id:"test-123", pipeline:"whitelist", checkLanguage:false})
YIELD result
RETURN result

Link to the snapshots :

https://www.dropbox.com/s/dh3cpny6ftp5nkm/graphaware-nlp-3.4.0.52.12-SNAPSHOT.jar?dl=0

https://www.dropbox.com/s/mjrhnco7ip1zgml/nlp-stanfordnlp-3.4.0.52.12-SNAPSHOT.jar?dl=0

@ikwattro
Copy link
Author

ikwattro commented Jul 8, 2018

screen shot 2018-07-08 at 13 26 57

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment