diff options
Diffstat (limited to 'generator/word.cpp')
-rw-r--r-- | generator/word.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/generator/word.cpp b/generator/word.cpp index 8ba3ce2..b3fc490 100644 --- a/generator/word.cpp +++ b/generator/word.cpp | |||
@@ -37,7 +37,7 @@ namespace verbly { | |||
37 | { | 37 | { |
38 | adjectivePosition_ = adjectivePosition; | 38 | adjectivePosition_ = adjectivePosition; |
39 | } | 39 | } |
40 | 40 | ||
41 | void word::setVerbGroup(const group& verbGroup) | 41 | void word::setVerbGroup(const group& verbGroup) |
42 | { | 42 | { |
43 | verbGroup_ = &verbGroup; | 43 | verbGroup_ = &verbGroup; |
@@ -46,7 +46,7 @@ namespace verbly { | |||
46 | database& operator<<(database& db, const word& arg) | 46 | database& operator<<(database& db, const word& arg) |
47 | { | 47 | { |
48 | std::list<field> fields; | 48 | std::list<field> fields; |
49 | 49 | ||
50 | fields.emplace_back("word_id", arg.getId()); | 50 | fields.emplace_back("word_id", arg.getId()); |
51 | fields.emplace_back("notion_id", arg.getNotion().getId()); | 51 | fields.emplace_back("notion_id", arg.getNotion().getId()); |
52 | fields.emplace_back("lemma_id", arg.getLemma().getId()); | 52 | fields.emplace_back("lemma_id", arg.getLemma().getId()); |
@@ -55,13 +55,13 @@ namespace verbly { | |||
55 | { | 55 | { |
56 | fields.emplace_back("tag_count", arg.getTagCount()); | 56 | fields.emplace_back("tag_count", arg.getTagCount()); |
57 | } | 57 | } |
58 | 58 | ||
59 | if ((arg.getNotion().getPartOfSpeech() == part_of_speech::adjective) | 59 | if ((arg.getNotion().getPartOfSpeech() == part_of_speech::adjective) |
60 | && (arg.getAdjectivePosition() != positioning::undefined)) | 60 | && (arg.getAdjectivePosition() != positioning::undefined)) |
61 | { | 61 | { |
62 | fields.emplace_back("position", static_cast<int>(arg.getAdjectivePosition())); | 62 | fields.emplace_back("position", static_cast<int>(arg.getAdjectivePosition())); |
63 | } | 63 | } |
64 | 64 | ||
65 | if ((arg.getNotion().getPartOfSpeech() == part_of_speech::verb) | 65 | if ((arg.getNotion().getPartOfSpeech() == part_of_speech::verb) |
66 | && (arg.hasVerbGroup())) | 66 | && (arg.hasVerbGroup())) |
67 | { | 67 | { |