class NexosisApi::VocabularyWord
parse results of a single word entry in a vocabulary @since 2.2.0
Attributes
rank[R]
For words the rank or relative importance of the word in predictions. Nil for stop words. @return [Integer]
text[R]
The actual word or word pair @return [String]
type[R]
Either word or stopWord @return [String]
Public Class Methods
new(word_hash)
click to toggle source
# File lib/nexosis_api/vocabulary_word.rb, line 5 def initialize(word_hash) word_hash.each { |k, v| instance_variable_set("@#{k}", v) } end