strusAnalyzer  0.17
contentStatisticsContextInterface.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_CONTENT_STATISTICS_CONTEXT_INTERFACE_HPP_INCLUDED
11 #define _STRUS_ANALYZER_CONTENT_STATISTICS_CONTEXT_INTERFACE_HPP_INCLUDED
14 #include <vector>
15 #include <string>
16 
18 namespace strus
19 {
20 
23 {
24 public:
27 
32  virtual void putContent(
33  const std::string& docid,
34  const std::string& content,
35  const analyzer::DocumentClass& doctype)=0;
36 
40 
43  virtual int nofDocuments() const=0;
44 };
45 
46 }//namespace
47 #endif
48 
Defines a description of the properties of an original document processed by the segmenter.
Definition: documentClass.hpp:21
Defines the content statistics result from a collection sample.
Definition: contentStatisticsResult.hpp:20
Defines a program for analyzing a document, splitting it into normalized terms that can be fed to the...
Definition: contentStatisticsContextInterface.hpp:22
virtual analyzer::ContentStatisticsResult statistics()=0
Do return the overall statistics of the sample documents.
Structure describing the MIME type plus some attributes that could be relevant for analysis of a docu...
Structure describing the structure statistics analysis of a sample document collection.
virtual int nofDocuments() const =0
Get the number of sample documents only.
virtual void putContent(const std::string &docid, const std::string &content, const analyzer::DocumentClass &doctype)=0
Put content to collect statistics.
virtual ~ContentStatisticsContextInterface()
Destructor.
Definition: contentStatisticsContextInterface.hpp:26