18 Mar 2010 01:10:20 UTC
- Distribution: KinoSearch1
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (4)
- Testers (58 / 7 / 0)
- KwaliteeBus factor: 0
- License: perl_5
- Activity24 month
- Download (272.65KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionCREAMYG Marvin Humphreyand 1 contributors
- Marvin Humphrey <marvin at rectangular dot com>
KinoSearch1::Analysis::Analyzer - base class for analyzers
# abstract base class -- you probably want PolyAnalyzer, not this.
In KinoSearch1, an Analyzer is a filter which processes text, transforming it from one form into another. For instance, an analyzer might break up a long text into smaller pieces (Tokenizer), or it might convert text to lowercase (LCNormalizer).
$token_batch = $analyzer->analyze($token_batch);
All Analyzer subclasses provide an
analyze()takes a single TokenBatch as input, and it returns a TokenBatch, either the same one (probably transformed in some way), or a new one.
Copyright 2005-2010 Marvin Humphrey
See KinoSearch1 version 1.00.