Class StanfordParser::Word
In: lib/stanfordparser.rb
Parent: Rjb::JavaObjectWrapper

This is a wrapper for edu.stanford.nlp.ling.Word objects. It customizes stringification and adds an equivalence operator.

Methods

==   inspect   new  

Public Class methods

[Source]

# File lib/stanfordparser.rb, line 194
    def initialize(obj = "edu.stanford.nlp.ling.Word", *args)
      super(obj, *args)
    end

Public Instance methods

Equivalence is defined relative to the word value.

[Source]

# File lib/stanfordparser.rb, line 204
    def ==(other)
      word == other
    end

See the word values.

[Source]

# File lib/stanfordparser.rb, line 199
    def inspect
      to_s
    end

[Validate]