Class: RMMSeg::Ferret::Analyzer
- Inherits:
-
Ferret::Analysis::Analyzer
- Object
- Ferret::Analysis::Analyzer
- RMMSeg::Ferret::Analyzer
- Defined in:
- lib/rmmseg/ferret.rb
Overview
The Analyzer class can be used with Ferret .
Instance Method Summary collapse
-
#initialize(&brk) ⇒ Analyzer
constructor
Construct an Analyzer.
- #token_stream(field, text) ⇒ Object
Constructor Details
Instance Method Details
#token_stream(field, text) ⇒ Object
23 24 25 26 27 28 29 30 |
# File 'lib/rmmseg/ferret.rb', line 23 def token_stream(field, text) t = PunctuationFilter.new(Tokenizer.new(text)) if @brk @brk.call(t) else t end end |