propiedad para open etiquetas description agregar plugins neo4j graphaware

plugins - para - neo4j Similaridad coseno grafware



plugins open graph (2)

¿Cómo escribo una declaración para el coseno de similitud usando ga.nlp.ml.similarity.cosine para nodo News :

CREATE (n:News) SET n.text = "Scores of people were already lying dead or injured inside a crowded Orlando nightclub, and the police had spent hours trying to connect with the gunman and end the situation without further violence. But when Omar Mateen threatened to set off explosives, the police decided to act, and pushed their way through a wall to end the bloody standoff.";

¿Cuál es la sintaxis correcta?


Esta es la estructura de llamada:

CALL ga.nlp.ml.similarity.cosine([<nodes>],depth,Query,Relationship type) //nodes->The list of annotated nodes for which it will compute the distances //depth->Integer. if 0, it will not use Concept Net 5 imported data for the distance computing. If greater than 0 it will consider concepts during computation, the value will define how much in general it should go. //Query->String. It is the query that will be used to compute the tags vector, some are already defined, so this cold be null //Relationship Type->String. The name to assign to the Relationship created between AnnotatedText nodes.

Esto es un ejemplo:

MATCH (a:AnnotatedText) with collect(a) as list CALL ga.nlp.ml.similarity.cosine(list, 0, null, "SIMILARITY") YIELD result return result


CALL ga.nlp.ml.similarity.cosine([<nodes>],depth,Query,Relationship type) //nodes->Must be annotated nodes //depth->integer data //Query->String //Relationship Type->String