diff options
| author | Paul Baltescu <pauldb89@gmail.com> | 2013-03-10 01:01:01 +0000 |
|---|---|---|
| committer | Paul Baltescu <pauldb89@gmail.com> | 2013-03-10 01:01:01 +0000 |
| commit | 6d43674e6b224281e43ccefc87224a7ba2fbb99a (patch) | |
| tree | 36e0128b60755e47d217825fca13ccfb3f701158 /extractor/phrase_builder.h | |
| parent | 1b9ca189fd0549bd6d969edf618f92ea59184b12 (diff) | |
Added comments. Hooray!
Diffstat (limited to 'extractor/phrase_builder.h')
| -rw-r--r-- | extractor/phrase_builder.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/extractor/phrase_builder.h b/extractor/phrase_builder.h index 2956fd35..de86dbae 100644 --- a/extractor/phrase_builder.h +++ b/extractor/phrase_builder.h @@ -11,12 +11,17 @@ namespace extractor { class Phrase; class Vocabulary; +/** + * Component for constructing phrases. + */ class PhraseBuilder { public: PhraseBuilder(shared_ptr<Vocabulary> vocabulary); + // Constructs a phrase starting from an array of symbols. Phrase Build(const vector<int>& symbols); + // Extends a phrase with a leading and/or trailing nonterminal. Phrase Extend(const Phrase& phrase, bool start_x, bool end_x); private: |
