From bef0b86b7f2b51e90651fc5a2d3cbeefeea4d592 Mon Sep 17 00:00:00 2001 From: ilor <kailoran@gmail.com> Date: Wed, 20 Oct 2010 13:13:52 +0200 Subject: [PATCH] fix crash in tagset-tool --- tagset-tool/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tagset-tool/main.cpp b/tagset-tool/main.cpp index b050905..efabbf9 100644 --- a/tagset-tool/main.cpp +++ b/tagset-tool/main.cpp @@ -113,7 +113,7 @@ void tagset_query_cb(const Corpus2::Tagset& tagset, const std::string& s) } std::cout << "\nIn POSes:"; for (Corpus2::idx_t p = 0; p < tagset.pos_dictionary().size(); ++p) { - if (tagset.get_pos_attributes(p)[atr]) { + if (tagset.get_pos_attributes_flag(p)[atr]) { std::cout << " " << tagset.pos_dictionary().get_string(p); if (!tagset.get_pos_required_attributes(p)[atr]) { std::cout << "?"; @@ -131,7 +131,7 @@ void tagset_query_cb(const Corpus2::Tagset& tagset, const std::string& s) } std::cout << "\nIn POSes:"; for (Corpus2::idx_t p = 0; p < tagset.pos_dictionary().size(); ++p) { - if (tagset.get_pos_attributes(p)[a]) { + if (tagset.get_pos_attributes_flag(p)[a]) { std::cout << " " << tagset.pos_dictionary().get_string(p); if (!tagset.get_pos_required_attributes(p)[a]) { std::cout << "?"; -- GitLab