From 6ac16eebc53e0aa9ee66b24041e87e7cb289e20c Mon Sep 17 00:00:00 2001 From: ilor <kailoran@gmail.com> Date: Thu, 9 Jun 2011 16:51:40 +0200 Subject: [PATCH] fix tag singularity checking --- libcorpus2/tagset.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcorpus2/tagset.cpp b/libcorpus2/tagset.cpp index aed32a3..f078d17 100644 --- a/libcorpus2/tagset.cpp +++ b/libcorpus2/tagset.cpp @@ -528,7 +528,7 @@ size_t Tagset::tag_size(const Tag& tag) const bool Tagset::tag_is_singular(const Tag& tag) const { - if (PwrNlp::count_bits_set(tag.get_pos()) != 1) return false; + if (PwrNlp::count_bits_set(tag.get_pos()) > 1) return false; foreach (mask_t attribute_mask, all_attribute_masks()) { mask_t values = tag.get_values_for(attribute_mask); if (PwrNlp::count_bits_set(values) > 1) return false; -- GitLab