Provide information about an analyzer to the dtSearch Engine.
File
File: dts_la.h
Syntax
C++
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);
};
Data Members
|
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 |
Group
Members
Data Members
|
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 |
Methods
|
Method |
Description |
|---|---|
|
Initialize a dtsLanguageAnalyzerInterface | |
|
Copy a dtsLanguageAnalyzerInterface (shallow copy) | |
|
Constructor |
Methods
|
Method |
Description |
|---|---|
|
Initialize a dtsLanguageAnalyzerInterface | |
|
Copy a dtsLanguageAnalyzerInterface (shallow copy) | |
|
Constructor |
Remarks
If your language analyzer class is based on CLanguageAnalyzerBase, then calling CLanguageAnalyzerBase::makeInterface() will set up all of these function pointers except for pCreateAnalyzer