Class: NLP::Word
- Includes:
- Inflectable, Meaningable
- Defined in:
- lib/word.rb
Constant Summary
Constants included from Inflectable
Instance Attribute Summary collapse
-
#category ⇒ Object
Returns the value of attribute category.
-
#lemat ⇒ Object
readonly
Returns the value of attribute lemat.
-
#orth ⇒ Object
readonly
Returns the value of attribute orth.
Attributes inherited from Token
Instance Method Summary collapse
- #inflection ⇒ Object
-
#initialize(word, lemat, tags) ⇒ Word
constructor
A new instance of Word.
Methods included from Meaningable
#bad_word?, #cognitive?, #emotion?, #linguistic?, #negative_emotion?, #personal?, #positive_emotion?, #psychological?, #relative?, #sense?, #social?, #synonym?, #synonyms
Methods inherited from Token
#float?, #integer?, #interp?, #number?, #word?
Constructor Details
#initialize(word, lemat, tags) ⇒ Word
Returns a new instance of Word.
12 13 14 15 |
# File 'lib/word.rb', line 12 def initialize(word, lemat, ) super(word,) @lemat = lemat end |
Instance Attribute Details
#category ⇒ Object
Returns the value of attribute category.
10 11 12 |
# File 'lib/word.rb', line 10 def category @category end |
#lemat ⇒ Object (readonly)
Returns the value of attribute lemat.
9 10 11 |
# File 'lib/word.rb', line 9 def lemat @lemat end |
#orth ⇒ Object (readonly)
Returns the value of attribute orth.
9 10 11 |
# File 'lib/word.rb', line 9 def orth @orth end |
Instance Method Details
#inflection ⇒ Object
17 18 19 |
# File 'lib/word.rb', line 17 def inflection @tags end |