Skip to content
Snippets Groups Projects
Commit a5674e4b authored by Adam Wardynski's avatar Adam Wardynski
Browse files

Update string representation of TagRulesSequence.

parent f6a74e19
Branches
No related merge requests found
...@@ -44,10 +44,10 @@ int TagRuleSequence::execute_until_done(const boost::shared_ptr<Corpus2::Sentenc ...@@ -44,10 +44,10 @@ int TagRuleSequence::execute_until_done(const boost::shared_ptr<Corpus2::Sentenc
std::string TagRuleSequence::to_string(const Corpus2::Tagset& tagset) const std::string TagRuleSequence::to_string(const Corpus2::Tagset& tagset) const
{ {
std::ostringstream os; std::ostringstream os;
os << "rules("; os << "tag_rules(";
for (size_t i = 0; i < size(); ++i) { for (size_t i = 0; i < size(); ++i) {
if (i != 0) { if (i != 0) {
os << ", \n"; os << ";\n";
} }
os << at(i).to_string(tagset); os << at(i).to_string(tagset);
} }
...@@ -57,10 +57,10 @@ std::string TagRuleSequence::to_string(const Corpus2::Tagset& tagset) const ...@@ -57,10 +57,10 @@ std::string TagRuleSequence::to_string(const Corpus2::Tagset& tagset) const
std::ostream& TagRuleSequence::write_to(std::ostream &os) const std::ostream& TagRuleSequence::write_to(std::ostream &os) const
{ {
os << "rules("; os << "tag_rules(";
for (size_t i = 0; i < size(); ++i) { for (size_t i = 0; i < size(); ++i) {
if (i != 0) { if (i != 0) {
os << ", \n"; os << ";\n";
} }
os << at(i); os << at(i);
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment