Class: TextRazor::Word
Instance Attribute Summary collapse
-
#ending_pos ⇒ Object
readonly
Returns the value of attribute ending_pos.
-
#lemma ⇒ Object
readonly
Returns the value of attribute lemma.
-
#parent_position ⇒ Object
readonly
Returns the value of attribute parent_position.
-
#part_of_speech ⇒ Object
readonly
Returns the value of attribute part_of_speech.
-
#position ⇒ Object
readonly
Returns the value of attribute position.
-
#starting_pos ⇒ Object
readonly
Returns the value of attribute starting_pos.
-
#stem ⇒ Object
readonly
Returns the value of attribute stem.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Word
constructor
A new instance of Word.
Methods included from Util
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_pos ⇒ Object (readonly)
Returns the value of attribute ending_pos.
6 7 8 |
# File 'lib/textrazor/word.rb', line 6 def ending_pos @ending_pos end |
#lemma ⇒ Object (readonly)
Returns the value of attribute lemma.
6 7 8 |
# File 'lib/textrazor/word.rb', line 6 def lemma @lemma end |
#parent_position ⇒ Object (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_speech ⇒ Object (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 |
#position ⇒ Object (readonly)
Returns the value of attribute position.
6 7 8 |
# File 'lib/textrazor/word.rb', line 6 def position @position end |
#starting_pos ⇒ Object (readonly)
Returns the value of attribute starting_pos.
6 7 8 |
# File 'lib/textrazor/word.rb', line 6 def starting_pos @starting_pos end |
#stem ⇒ Object (readonly)
Returns the value of attribute stem.
6 7 8 |
# File 'lib/textrazor/word.rb', line 6 def stem @stem end |
#token ⇒ Object (readonly)
Returns the value of attribute token.
6 7 8 |
# File 'lib/textrazor/word.rb', line 6 def token @token end |