[Debtags-commits] [svn] r1821 - in debtags/1.6.0: . tools
Enrico Zini
enrico at costa.debian.org
Sun Jul 9 07:51:42 UTC 2006
Author: enrico
Date: Sun Jul 9 07:51:41 2006
New Revision: 1821
Modified:
debtags/1.6.0/ (props changed)
debtags/1.6.0/tools/debtags.cc
Log:
r3010 at viaza: enrico | 2006-07-08 23:46:48 +0200
Use new code from tagcoll to compute tag relevance.
Modified: debtags/1.6.0/tools/debtags.cc
==============================================================================
--- debtags/1.6.0/tools/debtags.cc (original)
+++ debtags/1.6.0/tools/debtags.cc Sun Jul 9 07:51:41 2006
@@ -1170,6 +1170,8 @@
if (patternMatch(i->first))
filtered.insert(wibble::singleton(i->first), i->second);
+ interesting = filtered.tagsInRelevanceOrder(fullColl);
+#if 0
// Compute the set of tags that better represent the keyword search
TagMetrics<Tag, int> metrics1 = TagMetrics<Tag, int>::computeFromTags(fullColl);
TagMetrics<Tag, int> metrics2 = TagMetrics<Tag, int>::computeFromTags(filtered);
@@ -1182,6 +1184,7 @@
// optimizable)
interesting = metrics2.tagsSortedByRelevance(metrics1);
#endif
+#endif
}
public:
More information about the Debtags-commits
mailing list