strusAnalyzer  0.17
tokenMarkupContextInterface.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2016 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_TOKEN_MARKUP_CONTEXT_INTERFACE_HPP_INCLUDED
11 #define _STRUS_ANALYZER_TOKEN_MARKUP_CONTEXT_INTERFACE_HPP_INCLUDED
16 #include <vector>
17 #include <string>
18 
19 namespace strus
20 {
22 class SegmenterInstanceInterface;
23 
26 {
27 public:
30 
36  virtual void putMarkup(
37  const analyzer::Position& start,
38  const analyzer::Position& end,
39  const analyzer::TokenMarkup& markup,
40  unsigned int level)=0;
41 
46  virtual std::string markupDocument(
47  const analyzer::DocumentClass& dclass,
48  const std::string& content) const=0;
49 };
50 
51 } //namespace
52 #endif
53 
Defines a description of the properties of an original document processed by the segmenter.
Definition: documentClass.hpp:21
virtual void putMarkup(const analyzer::Position &start, const analyzer::Position &end, const analyzer::TokenMarkup &markup, unsigned int level)=0
Define a marker for a span in the text.
Structure describing the MIME type plus some attributes that could be relevant for analysis of a docu...
virtual std::string markupDocument(const analyzer::DocumentClass &dclass, const std::string &content) const =0
Get the original document content with all markups declared inserted.
Interface for the execution context of a document segmenter.
virtual ~TokenMarkupContextInterface()
Destructor.
Definition: tokenMarkupContextInterface.hpp:29
Structure defining an annotation of text in a document.
Definition: tokenMarkup.hpp:21
Structure describing a position in a document source by segment and offset.
Interface for annotation of text in one document.
Definition: tokenMarkupContextInterface.hpp:25
Structure describing a position in a document source by segment and offset.
Definition: position.hpp:22
Structure defining an annotation of text in one document.