Class: Igo::Morpheme
- Inherits:
-
Object
- Object
- Igo::Morpheme
- Defined in:
- lib/igo/tagger.rb
Overview
形態素クラス
Instance Attribute Summary collapse
-
#feature ⇒ Object
Returns the value of attribute feature.
-
#start ⇒ Object
Returns the value of attribute start.
-
#surface ⇒ Object
Returns the value of attribute surface.
Instance Method Summary collapse
-
#initialize(surface, feature, start) ⇒ Morpheme
constructor
- surface
- 形態素の表層形 feature
- 形態素の素性 start
-
テキスト内でも形態素の出現開始位置.
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
#feature ⇒ Object
Returns the value of attribute feature.
11 12 13 |
# File 'lib/igo/tagger.rb', line 11 def feature @feature end |
#start ⇒ Object
Returns the value of attribute start.
11 12 13 |
# File 'lib/igo/tagger.rb', line 11 def start @start end |
#surface ⇒ Object
Returns the value of attribute surface.
11 12 13 |
# File 'lib/igo/tagger.rb', line 11 def surface @surface end |