strusAnalyzer  0.17
tokenMarkupInstanceInterface.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_INSTANCE_INTERFACE_HPP_INCLUDED
11 #define _STRUS_ANALYZER_TOKEN_MARKUP_INSTANCE_INTERFACE_HPP_INCLUDED
13 #include <string>
14 
15 namespace strus
16 {
17 
19 class TokenMarkupContextInterface;
21 class SegmenterMarkupContextInterface;
22 
25 {
26 public:
29 
34  virtual TokenMarkupContextInterface* createContext( const SegmenterInstanceInterface* segmenter) const=0;
35 
38  virtual analyzer::FunctionView view() const=0;
39 };
40 
41 } //namespace
42 #endif
43 
44 
Defines a program for splitting a source text it into chunks with an id correspoding to a selecting e...
Definition: segmenterInstanceInterface.hpp:25
Structure describing the internal representation of a normalizer/tokenizer/aggregator function in the...
Structure describing the internal representation of a normalizer/tokenizer/aggregator function in the...
Definition: functionView.hpp:29
Interface for building the automaton for detecting patterns of tokens in a document stream...
Definition: tokenMarkupInstanceInterface.hpp:24
virtual ~TokenMarkupInstanceInterface()
Destructor.
Definition: tokenMarkupInstanceInterface.hpp:28
Interface for annotation of text in one document.
Definition: tokenMarkupContextInterface.hpp:25
virtual TokenMarkupContextInterface * createContext(const SegmenterInstanceInterface *segmenter) const =0
Create the context to markup tokens or spans in a document.
virtual analyzer::FunctionView view() const =0
Get the definition of the function as structure for introspection.