Class: NLP::Word
- Includes:
- Inflectable, Meaningable
- Defined in:
- lib/tagger/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.
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
#agl?, #float?, #integer?, #interp?, #number?, #qublic?, #symbol?, #word?
Constructor Details
#initialize(word, lemat, tags) ⇒ Word
Returns a new instance of Word.
10 11 12 13 |
# File 'lib/tagger/word.rb', line 10 def initialize(word, lemat, ) super(word,) @lemat = lemat end |
Instance Attribute Details
#category ⇒ Object
Returns the value of attribute category.
8 9 10 |
# File 'lib/tagger/word.rb', line 8 def category @category end |
#lemat ⇒ Object (readonly)
Returns the value of attribute lemat.
7 8 9 |
# File 'lib/tagger/word.rb', line 7 def lemat @lemat end |
Instance Method Details
#inflection ⇒ Object
15 16 17 |
# File 'lib/tagger/word.rb', line 15 def inflection @tags end |