Nick Zafiridis
Nick Zafiridis

Reputation: 155

stanford core NLP RNNCoreAnnotations node vector

What does the:

public static SimpleMatrix getNodeVector(Tree tree)

of the RNNCoreAnnotations class return exactly? It is a vector of 25 decimal values, but what do they represent?

Upvotes: 2

Views: 206

Answers (1)

Christopher Manning
Christopher Manning

Reputation: 9450

It returns the distributed representation of the node, which is a vector. This corresponds to the vectors a, b, c, p1, and p2 in Section 4 of the paper about the work: http://nlp.stanford.edu/pubs/SocherEtAl_EMNLP2013.pdf . It is not easily human interpretable, but a function of it predicts the node's sentiment, as explained in the paper.

Upvotes: 3

Related Questions