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
-
テキスト内でも形態素の出現開始位置
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
#feature ⇒ Object
Returns the value of attribute feature.
12 13 14 |
# File 'lib/igo/tagger.rb', line 12 def feature @feature end |
#start ⇒ Object
Returns the value of attribute start.
12 13 14 |
# File 'lib/igo/tagger.rb', line 12 def start @start end |
#surface ⇒ Object
Returns the value of attribute surface.
12 13 14 |
# File 'lib/igo/tagger.rb', line 12 def surface @surface end |