Class: Igo::Morpheme

Inherits:
Object
  • Object
show all
Defined in:
lib/igo/tagger.rb

Overview

形態素クラス

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(surface, feature, start) ⇒ Morpheme

surface

形態素の表層形

feature

形態素の素性

start

テキスト内でも形態素の出現開始位置



17
18
19
20
21
# File 'lib/igo/tagger.rb', line 17

def initialize(surface, feature, start)
  @surface = surface
  @feature = feature
  @start = start
end

Instance Attribute Details

#featureObject

Returns the value of attribute feature.



12
13
14
# File 'lib/igo/tagger.rb', line 12

def feature
  @feature
end

#startObject

Returns the value of attribute start.



12
13
14
# File 'lib/igo/tagger.rb', line 12

def start
  @start
end

#surfaceObject

Returns the value of attribute surface.



12
13
14
# File 'lib/igo/tagger.rb', line 12

def surface
  @surface
end