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

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



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

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

Instance Attribute Details

#featureObject

Returns the value of attribute feature.



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

def feature
  @feature
end

#startObject

Returns the value of attribute start.



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

def start
  @start
end

#surfaceObject

Returns the value of attribute surface.



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

def surface
  @surface
end