Class: Kampyo::Text

Inherits:
Object
  • Object
show all
Defined in:
lib/kampyo/text.rb

Overview

Text

Direct Known Subclasses

Cabocha, Mecab

Instance Method Summary collapse

Constructor Details

#initializeText

Returns a new instance of Text.



10
# File 'lib/kampyo/text.rb', line 10

def initialize; end

Instance Method Details

#ext_reading(feature) ⇒ Object



12
13
14
# File 'lib/kampyo/text.rb', line 12

def ext_reading(feature)
  (feature =~ /\A[\p{katakana}|ー]+\z/).nil? ? feature : nil
end