Class: TextRazor::Word

Inherits:
Object
  • Object
show all
Includes:
Util
Defined in:
lib/textrazor/word.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Util

included

Constructor Details

#initialize(params = {}) ⇒ Word

Returns a new instance of Word.



9
10
11
12
# File 'lib/textrazor/word.rb', line 9

def initialize(params = {})
  @type = []
  initialize_params params
end

Instance Attribute Details

#ending_posObject (readonly)

Returns the value of attribute ending_pos.



6
7
8
# File 'lib/textrazor/word.rb', line 6

def ending_pos
  @ending_pos
end

#lemmaObject (readonly)

Returns the value of attribute lemma.



6
7
8
# File 'lib/textrazor/word.rb', line 6

def lemma
  @lemma
end

#parent_positionObject (readonly)

Returns the value of attribute parent_position.



6
7
8
# File 'lib/textrazor/word.rb', line 6

def parent_position
  @parent_position
end

#part_of_speechObject (readonly)

Returns the value of attribute part_of_speech.



6
7
8
# File 'lib/textrazor/word.rb', line 6

def part_of_speech
  @part_of_speech
end

#positionObject (readonly)

Returns the value of attribute position.



6
7
8
# File 'lib/textrazor/word.rb', line 6

def position
  @position
end

#starting_posObject (readonly)

Returns the value of attribute starting_pos.



6
7
8
# File 'lib/textrazor/word.rb', line 6

def starting_pos
  @starting_pos
end

#stemObject (readonly)

Returns the value of attribute stem.



6
7
8
# File 'lib/textrazor/word.rb', line 6

def stem
  @stem
end

#tokenObject (readonly)

Returns the value of attribute token.



6
7
8
# File 'lib/textrazor/word.rb', line 6

def token
  @token
end