Class: TextRazor::Word
- Inherits:
-
Object
- Object
- TextRazor::Word
- Defined in:
- lib/text_razor/word.rb
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.
-
#relation_to_parent ⇒ Object
readonly
Returns the value of attribute relation_to_parent.
-
#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(options = {}) ⇒ Word
constructor
A new instance of Word.
Constructor Details
#initialize(options = {}) ⇒ Word
Returns a new instance of Word.
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/text_razor/word.rb', line 6 def initialize(={}) @parent_position = ['parentPosition'] @relation_to_parent = ['relationToParent'] @position = ['position'] @stem = ['stem'] @lemma = ['lemma'] @token = ['token'] @part_of_speech = ['partOfSpeech'] @starting_pos = ['starting_pos'] @ending_pos = ['ending_pos'] end |
Instance Attribute Details
#ending_pos ⇒ Object (readonly)
Returns the value of attribute ending_pos.
3 4 5 |
# File 'lib/text_razor/word.rb', line 3 def ending_pos @ending_pos end |
#lemma ⇒ Object (readonly)
Returns the value of attribute lemma.
3 4 5 |
# File 'lib/text_razor/word.rb', line 3 def lemma @lemma end |
#parent_position ⇒ Object (readonly)
Returns the value of attribute parent_position.
3 4 5 |
# File 'lib/text_razor/word.rb', line 3 def parent_position @parent_position end |
#part_of_speech ⇒ Object (readonly)
Returns the value of attribute part_of_speech.
3 4 5 |
# File 'lib/text_razor/word.rb', line 3 def part_of_speech @part_of_speech end |
#position ⇒ Object (readonly)
Returns the value of attribute position.
3 4 5 |
# File 'lib/text_razor/word.rb', line 3 def position @position end |
#relation_to_parent ⇒ Object (readonly)
Returns the value of attribute relation_to_parent.
3 4 5 |
# File 'lib/text_razor/word.rb', line 3 def relation_to_parent @relation_to_parent end |
#starting_pos ⇒ Object (readonly)
Returns the value of attribute starting_pos.
3 4 5 |
# File 'lib/text_razor/word.rb', line 3 def starting_pos @starting_pos end |
#stem ⇒ Object (readonly)
Returns the value of attribute stem.
3 4 5 |
# File 'lib/text_razor/word.rb', line 3 def stem @stem end |
#token ⇒ Object (readonly)
Returns the value of attribute token.
3 4 5 |
# File 'lib/text_razor/word.rb', line 3 def token @token end |