Blame view

morfeusz/MorphInterpretation.hpp 1.71 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
13
14

class Environment;
Michał Lenart authored
15
16
#include "Tagset.hpp"
#include "EncodedInterpretation.hpp"
Michał Lenart authored
17
#include "charset/CharsetConverter.hpp"
Michał Lenart authored
18
#include "Environment.hpp"
Michał Lenart authored
19
20
21
22
23
24
25

class MorphInterpretation {
public:
    MorphInterpretation(
            int startNode,
            int endNode,
            const std::string& orth,
Michał Lenart authored
26
            const std::string& lemma,
Michał Lenart authored
27
//            const std::string& homonymId,
Michał Lenart authored
28
29
            int tagnum,
            int namenum,
Michał Lenart authored
30
31
            int qualifiersNum,
            const Environment& env);
Michał Lenart authored
32
    MorphInterpretation();
Michał Lenart authored
33
    static MorphInterpretation createIgn(int startNode, const std::string& orth, const Environment& env);
Michał Lenart authored
34
//    virtual ~MorphInterpretation();
Michał Lenart authored
35
36
    int getStartNode() const;
    int getEndNode() const;
Michał Lenart authored
37
38
    const std::string& getOrth() const;
    const std::string& getLemma() const;
Michał Lenart authored
39
40
//    const std::string& getHomonymId() const;
    bool hasHomonym(const string& homonymId) const;
Michał Lenart authored
41
42
43
44
    int getTagnum() const;
    int getNamenum() const;
    const std::string& getTag() const;
    const std::string& getName() const;
Michał Lenart authored
45
    const std::vector<std::string>& getQualifiers() const;
Michał Lenart authored
46
47

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

#endif	/* MORPHINTERPRETATION_HPP */