Class: NLP::Emoticon

Inherits:
Token
  • Object
show all
Includes:
Meaningable
Defined in:
lib/tagger/emoticon.rb

Instance Attribute Summary

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(tokens, tags) ⇒ Emoticon

Returns a new instance of Emoticon.



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

def initialize(tokens,tags)
  @orth = tokens.join("")
  @tags = 'emoticon'           
end