|
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
|
#include "Tagset.hpp"
|
|
14
|
#include "charset/CharsetConverter.hpp"
|
|
15
|
#include "Environment.hpp"
|
|
16
|
|
|
17
18
|
namespace morfeusz {
|
|
19
20
21
|
/**
* Morphological interpretation as seen by the user in the analysis/generation results.
*/
|
|
22
23
24
25
26
27
|
class MorphInterpretation {
public:
MorphInterpretation(
int startNode,
int endNode,
const std::string& orth,
|
|
28
|
const std::string& lemma,
|
|
29
|
// const std::string& homonymId,
|
|
30
31
|
int tagnum,
int namenum,
|
|
32
33
|
int qualifiersNum,
const Environment& env);
|
|
34
|
MorphInterpretation();
|
|
35
|
static MorphInterpretation createIgn(int startNode, const std::string& orth, const Environment& env);
|
|
36
|
// virtual ~MorphInterpretation();
|
|
37
38
|
int getStartNode() const;
int getEndNode() const;
|
|
39
40
|
const std::string& getOrth() const;
const std::string& getLemma() const;
|
|
41
|
// const std::string& getHomonymId() const;
|
|
42
|
bool hasHomonym(const std::string& homonymId) const;
|
|
43
44
45
46
|
int getTagnum() const;
int getNamenum() const;
const std::string& getTag() const;
const std::string& getName() const;
|
|
47
|
const std::vector<std::string>& getQualifiers() const;
|
|
48
49
|
std::string toString(bool includeNodeNumbers) const;
|
|
50
|
private:
|
|
51
52
53
|
MorphInterpretation(
int startNode,
const std::string& orth,
|
|
54
|
const Environment& env);
|
|
55
56
57
58
|
int startNode;
int endNode;
std::string orth;
std::string lemma;
|
|
59
|
// std::string homonymId;
|
|
60
61
|
int tagnum;
int namenum;
|
|
62
63
|
std::string tag;
std::string name;
|
|
64
|
const std::vector<std::string>* qualifiers;
|
|
65
66
|
};
|
|
67
68
|
}
|
|
69
70
|
#endif /* MORPHINTERPRETATION_HPP */
|