diff options
| author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-02-03 09:15:28 -0500 |
|---|---|---|
| committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-02-03 09:16:28 -0500 |
| commit | 64f26d4a3b80969e08a607f80dde87d49ad5c2e3 (patch) | |
| tree | 92ab69c6550d696ac6b15e1366b54222e773ada9 /generator/form.h | |
| parent | f2aacc40f4c26b3f4d71d81090f05261f4969e29 (diff) | |
| download | verbly-64f26d4a3b80969e08a607f80dde87d49ad5c2e3.tar.gz verbly-64f26d4a3b80969e08a607f80dde87d49ad5c2e3.tar.bz2 verbly-64f26d4a3b80969e08a607f80dde87d49ad5c2e3.zip | |
Added word frequency information
Diffstat (limited to 'generator/form.h')
| -rw-r--r-- | generator/form.h | 11 |
1 files changed, 11 insertions, 0 deletions
| diff --git a/generator/form.h b/generator/form.h index c83bbdc..1686f9b 100644 --- a/generator/form.h +++ b/generator/form.h | |||
| @@ -63,6 +63,16 @@ namespace verbly { | |||
| 63 | return reverse_id_; | 63 | return reverse_id_; |
| 64 | } | 64 | } |
| 65 | 65 | ||
| 66 | void setFrequency(int freq) | ||
| 67 | { | ||
| 68 | frequency_ = freq; | ||
| 69 | } | ||
| 70 | |||
| 71 | int getFrequency() const | ||
| 72 | { | ||
| 73 | return frequency_; | ||
| 74 | } | ||
| 75 | |||
| 66 | std::set<const pronunciation*> getPronunciations() const | 76 | std::set<const pronunciation*> getPronunciations() const |
| 67 | { | 77 | { |
| 68 | return pronunciations_; | 78 | return pronunciations_; |
| @@ -79,6 +89,7 @@ namespace verbly { | |||
| 79 | const int length_; | 89 | const int length_; |
| 80 | const int anagram_set_id_; | 90 | const int anagram_set_id_; |
| 81 | int reverse_id_ = -1; | 91 | int reverse_id_ = -1; |
| 92 | int frequency_ = 0; | ||
| 82 | 93 | ||
| 83 | std::set<const pronunciation*> pronunciations_; | 94 | std::set<const pronunciation*> pronunciations_; |
| 84 | 95 | ||
