Blame view

morfeusz/MorphInterpretation.hpp 1.79 KB
Michał Lenart authored
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>
Michał Lenart authored
12
Michał Lenart authored
13
#include "Tagset.hpp"
Michał Lenart authored
14
#include "charset/CharsetConverter.hpp"
Michał Lenart authored
15
#include "Environment.hpp"
Michał Lenart authored
16
Michał Lenart authored
17
18
namespace morfeusz {
Michał Lenart authored
19
20
21
/**
 * Morphological interpretation as seen by the user in the analysis/generation results.
 */
Michał Lenart authored
22
23
24
25
26
27
class MorphInterpretation {
public:
    MorphInterpretation(
            int startNode,
            int endNode,
            const std::string& orth,
Michał Lenart authored
28
            const std::string& lemma,
Michał Lenart authored
29
//            const std::string& homonymId,
Michał Lenart authored
30
31
            int tagnum,
            int namenum,
Michał Lenart authored
32
33
            int qualifiersNum,
            const Environment& env);
Michał Lenart authored
34
    MorphInterpretation();
Michał Lenart authored
35
    static MorphInterpretation createIgn(int startNode, const std::string& orth, const Environment& env);
Michał Lenart authored
36
//    virtual ~MorphInterpretation();
Michał Lenart authored
37
38
    int getStartNode() const;
    int getEndNode() const;
Michał Lenart authored
39
40
    const std::string& getOrth() const;
    const std::string& getLemma() const;
Michał Lenart authored
41
//    const std::string& getHomonymId() const;
Michał Lenart authored
42
    bool hasHomonym(const std::string& homonymId) const;
Michał Lenart authored
43
44
45
46
    int getTagnum() const;
    int getNamenum() const;
    const std::string& getTag() const;
    const std::string& getName() const;
Michał Lenart authored
47
    const std::vector<std::string>& getQualifiers() const;
Michał Lenart authored
48
49

    std::string toString(bool includeNodeNumbers) const;
Michał Lenart authored
50
private:
Michał Lenart authored
51
52
53
    MorphInterpretation(
            int startNode,
            const std::string& orth,
Michał Lenart authored
54
            const Environment& env);
Michał Lenart authored
55
56
57
58
    int startNode;
    int endNode;
    std::string orth;
    std::string lemma;
Michał Lenart authored
59
//    std::string homonymId;
Michał Lenart authored
60
61
    int tagnum;
    int namenum;
Michał Lenart authored
62
63
    std::string tag;
    std::string name;
Michał Lenart authored
64
    const std::vector<std::string>* qualifiers;
Michał Lenart authored
65
66
};
Michał Lenart authored
67
68
}
Michał Lenart authored
69
70
#endif	/* MORPHINTERPRETATION_HPP */