Class: NLP::Word

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

Constant Summary

Constants included from Inflectable

Inflectable::GRAM_CAT

Instance Attribute Summary collapse

Attributes inherited from Token

#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

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

Instance Attribute Details

#categoryObject

Returns the value of attribute category.



10
11
12
# File 'lib/word.rb', line 10

def category
  @category
end

#lematObject (readonly)

Returns the value of attribute lemat.



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

def lemat
  @lemat
end

#orthObject (readonly)

Returns the value of attribute orth.



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

def orth
  @orth
end

Instance Method Details

#inflectionObject



17
18
19
# File 'lib/word.rb', line 17

def inflection
    @tags
end