Class: NLP::Word

Inherits:
Token show all
Includes:
Inflectable, Meaningable
Defined in:
lib/tagger/word.rb

Constant Summary

Constants included from Inflectable

Inflectable::GRAM_CAT

Instance Attribute Summary collapse

Attributes inherited from Token

#orth, #tags

Instance Method Summary collapse

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, tags)
  super(word,tags)
  @lemat = lemat
end

Instance Attribute Details

#categoryObject

Returns the value of attribute category.



8
9
10
# File 'lib/tagger/word.rb', line 8

def category
  @category
end

#lematObject (readonly)

Returns the value of attribute lemat.



7
8
9
# File 'lib/tagger/word.rb', line 7

def lemat
  @lemat
end

Instance Method Details

#inflectionObject



15
16
17
# File 'lib/tagger/word.rb', line 15

def inflection
  @tags
end