strusAnalyzer  0.17
analyzer.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2014 Patrick P. Frey
3  *
4  * This Source Code Form is subject to the terms of the Mozilla Public
5  * License, v. 2.0. If a copy of the MPL was not distributed with this
6  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7  */
10 #ifndef _STRUS_ANALYZER_LIB_HPP_INCLUDED
11 #define _STRUS_ANALYZER_LIB_HPP_INCLUDED
13 #include <string>
14 
16 namespace strus {
17 
19 class DocumentAnalyzerInstanceInterface;
21 class DocumentAnalyzerMapInterface;
23 class QueryAnalyzerInstanceInterface;
25 class SegmenterInterface;
27 class TextProcessorInterface;
29 class ErrorBufferInterface;
31 class AnalyzerObjectBuilderInterface;
32 
40 DocumentAnalyzerInstanceInterface* createDocumentAnalyzer( const TextProcessorInterface* textproc, const SegmenterInterface* segmenter, const analyzer::SegmenterOptions& opts, ErrorBufferInterface* errorhnd);
41 
45 QueryAnalyzerInstanceInterface* createQueryAnalyzer( ErrorBufferInterface* errorhnd);
46 
51 DocumentAnalyzerMapInterface* createDocumentAnalyzerMap( const AnalyzerObjectBuilderInterface* objbuilder, ErrorBufferInterface* errorhnd);
52 
53 }//namespace
54 #endif
55 
DocumentAnalyzerInstanceInterface * createDocumentAnalyzer(const TextProcessorInterface *textproc, const SegmenterInterface *segmenter, const analyzer::SegmenterOptions &opts, ErrorBufferInterface *errorhnd)
Creates a parameterizable analyzer instance for analyzing documents.
DocumentAnalyzerMapInterface * createDocumentAnalyzerMap(const AnalyzerObjectBuilderInterface *objbuilder, ErrorBufferInterface *errorhnd)
Creates a analyzer map for bundling different instances of analyzers for different classes of documen...
QueryAnalyzerInstanceInterface * createQueryAnalyzer(ErrorBufferInterface *errorhnd)
Creates a parameterizable analyzer instance for analyzing queries.
Options to stear the segmenter behaviour or the structure of input if not self defined in the documen...