Provide information about an analyzer to the dtSearch Engine.
struct dtsLanguageAnalyzerInterface { const char * name; dtsAnalyzerHandle (* pCreateAnalyzer)(); void (* pDestroyAnalyzer)(dtsAnalyzerHandle hAnalyzer); int (* pInitializeJob)(dtsAnalyzerHandle hAnalyzer, dtsLaJob& toInitialize); bool (* pAnalyze)(dtsAnalyzerHandle hAnalyzer, dtsLaJob& job); void (* pDestroyJob)(dtsAnalyzerHandle hAnalyzer, dtsLaJob& toDestroy); };
dts_la.h
If your language analyzer class is based on CLanguageAnalyzerBase, then calling CLanguageAnalyzerBase::makeInterface() will set up all of these function pointers except for pCreateAnalyzer
|
Data Member |
Description |
|
A name to identify this analyzer (i.e., "Japanese Morphological Analyzer") | |
|
Analyze a block of data | |
|
Initialize analyzer | |
|
Release resources acquired by pCreateAnalyzer | |
|
Release any resources allocated during call to InitializeJob | |
|
Initialize structure for output data |
|
Method |
Description |
|
Initialize a dtsLanguageAnalyzerInterface | |
|
Copy a dtsLanguageAnalyzerInterface (shallow copy) | |
|
Constructor |
|
Data Member |
|
Method |
|
Copyright (c) 1995-2012 dtSearch Corp. All rights reserved.
|