diff options
Diffstat (limited to 'generator/pronunciation.cpp')
-rw-r--r-- | generator/pronunciation.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/generator/pronunciation.cpp b/generator/pronunciation.cpp index 3075d42..5c4d8e2 100644 --- a/generator/pronunciation.cpp +++ b/generator/pronunciation.cpp | |||
@@ -10,9 +10,10 @@ namespace verbly { | |||
10 | 10 | ||
11 | int pronunciation::nextId_ = 0; | 11 | int pronunciation::nextId_ = 0; |
12 | 12 | ||
13 | pronunciation::pronunciation(std::string phonemes) : | 13 | pronunciation::pronunciation(std::string phonemes, int anaphone_set_id) : |
14 | id_(nextId_++), | 14 | id_(nextId_++), |
15 | phonemes_(phonemes) | 15 | phonemes_(phonemes), |
16 | anaphone_set_id_(anaphone_set_id) | ||
16 | { | 17 | { |
17 | auto phonemeList = | 18 | auto phonemeList = |
18 | hatkirby::split<std::list<std::string>>(phonemes, " "); | 19 | hatkirby::split<std::list<std::string>>(phonemes, " "); |
@@ -88,6 +89,8 @@ namespace verbly { | |||
88 | fields.emplace_back("phonemes", arg.getPhonemes()); | 89 | fields.emplace_back("phonemes", arg.getPhonemes()); |
89 | fields.emplace_back("syllables", arg.getSyllables()); | 90 | fields.emplace_back("syllables", arg.getSyllables()); |
90 | fields.emplace_back("stress", arg.getStress()); | 91 | fields.emplace_back("stress", arg.getStress()); |
92 | fields.emplace_back("anaphone_set_id", arg.getAnaphoneSetId()); | ||
93 | fields.emplace_back("reverse_pronunciation_id", arg.getReverseId()); | ||
91 | 94 | ||
92 | if (arg.hasRhyme()) | 95 | if (arg.hasRhyme()) |
93 | { | 96 | { |