Skip to content

Commit

Permalink
Add getters for options and subword encoder
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumekln committed Oct 26, 2020
1 parent 5e108a9 commit 46868ea
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion include/onmt/Tokenizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,12 @@ namespace onmt

void set_subword_encoder(const std::shared_ptr<const SubwordEncoder>& subword_encoder);

const Options& options() const
const std::shared_ptr<const SubwordEncoder>& get_subword_encoder() const
{
return _subword_encoder;
}

const Options& get_options() const
{
return _options;
}
Expand Down

0 comments on commit 46868ea

Please sign in to comment.