diff options
author | Paul Baltescu <pauldb89@gmail.com> | 2013-11-26 01:14:28 +0000 |
---|---|---|
committer | Paul Baltescu <pauldb89@gmail.com> | 2013-11-26 01:31:40 +0000 |
commit | 1cd86c44e1799c441cdcda2a022be0ee6e52d38c (patch) | |
tree | 226777c6b734bbe8bf9ad0d4c941df198c72f2d1 /extractor/vocabulary.cc | |
parent | 6bdb362473cf0ee1c636ca0c3f4cca63d82a5573 (diff) |
Serialize vocabulary.
Diffstat (limited to 'extractor/vocabulary.cc')
-rw-r--r-- | extractor/vocabulary.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/extractor/vocabulary.cc b/extractor/vocabulary.cc index aef674a5..c9c2d6f4 100644 --- a/extractor/vocabulary.cc +++ b/extractor/vocabulary.cc @@ -35,4 +35,8 @@ string Vocabulary::GetTerminalValue(int symbol) { return word; } +bool Vocabulary::operator==(const Vocabulary& other) const { + return words == other.words && dictionary == other.dictionary; +} + } // namespace extractor |