Class StanfordNode

    • Field Detail

      • m_Value

        protected edu.stanford.nlp.trees.Tree m_Value
        the underlying value.
    • Constructor Detail

      • StanfordNode

        public StanfordNode​(String label,
                            edu.stanford.nlp.trees.Tree value)
        Initializes the node with the specified label.
        Parameters:
        label - the label for this node
        value - the parse sub-tree to attach, can be null
    • Method Detail

      • getLabel

        public String getLabel()
        Returns the label for this node.
        Returns:
        the label
      • hasValue

        public boolean hasValue()
        Checks whether there is any JSON object attached.
        Returns:
        true if a value is attached
      • getValue

        public edu.stanford.nlp.trees.Tree getValue()
        Returns the value for this node.
        Returns:
        the value