|
1
2
3
4
5
6
7
8
9
10
11
|
/*
* File: MorphInterpretation.hpp
* Author: mlenart
*
* Created on November 14, 2013, 11:47 AM
*/
#ifndef MORPHINTERPRETATION_HPP
#define MORPHINTERPRETATION_HPP
#include <string>
|
|
12
13
14
|
class Environment;
|
|
15
16
|
#include "Tagset.hpp"
#include "EncodedInterpretation.hpp"
|
|
17
|
#include "charset/CharsetConverter.hpp"
|
|
18
|
#include "Environment.hpp"
|
|
19
20
21
22
23
24
25
|
class MorphInterpretation {
public:
MorphInterpretation(
int startNode,
int endNode,
const std::string& orth,
|
|
26
|
const std::string& lemma,
|
|
27
|
// const std::string& homonymId,
|
|
28
29
|
int tagnum,
int namenum,
|
|
30
31
|
int qualifiersNum,
const Environment& env);
|
|
32
|
MorphInterpretation();
|
|
33
|
static MorphInterpretation createIgn(int startNode, const std::string& orth, const Environment& env);
|
|
34
|
// virtual ~MorphInterpretation();
|
|
35
36
|
int getStartNode() const;
int getEndNode() const;
|
|
37
38
|
const std::string& getOrth() const;
const std::string& getLemma() const;
|
|
39
40
|
// const std::string& getHomonymId() const;
bool hasHomonym(const string& homonymId) const;
|
|
41
42
43
44
|
int getTagnum() const;
int getNamenum() const;
const std::string& getTag() const;
const std::string& getName() const;
|
|
45
|
const std::vector<std::string>& getQualifiers() const;
|
|
46
47
|
std::string toString(bool includeNodeNumbers) const;
|
|
48
|
private:
|
|
49
50
51
|
MorphInterpretation(
int startNode,
const std::string& orth,
|
|
52
|
const Environment& env);
|
|
53
54
55
56
|
int startNode;
int endNode;
std::string orth;
std::string lemma;
|
|
57
|
// std::string homonymId;
|
|
58
59
|
int tagnum;
int namenum;
|
|
60
61
|
std::string tag;
std::string name;
|
|
62
|
std::vector<std::string> qualifiers;
|
|
63
64
65
66
|
};
#endif /* MORPHINTERPRETATION_HPP */
|