Class: Word::Tagger
- Inherits:
-
Tagger::WordTagger
- Object
- Tagger::WordTagger
- Word::Tagger
- Defined in:
- lib/word/tagger.rb
Instance Method Summary collapse
- #execute(text) ⇒ Object
-
#initialize(tags, options = {}) ⇒ Tagger
constructor
A new instance of Tagger.
Constructor Details
Instance Method Details
#execute(text) ⇒ Object
15 16 17 18 |
# File 'lib/word/tagger.rb', line 15 def execute( text ) # strip non alpha characters super( text.gsub(/[^\w]/,' ') ) end |