From 6772f0282e09bf87f82f30d8529d140b96ace876 Mon Sep 17 00:00:00 2001 From: walkskyer Date: Thu, 6 Nov 2014 22:24:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B8=A6=E6=9D=83=E9=87=8D?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=84=9A=E6=9C=AC=E8=BE=93=E5=87=BA=E7=BB=93?= =?UTF-8?q?=E6=9E=9C=E6=98=AF=E8=B0=83=E7=94=A8=E9=A1=BA=E5=BA=8F=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/extract_tags_with_weight.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/extract_tags_with_weight.py b/test/extract_tags_with_weight.py index 394434f..7e7b51b 100644 --- a/test/extract_tags_with_weight.py +++ b/test/extract_tags_with_weight.py @@ -38,6 +38,6 @@ tags = jieba.analyse.extract_tags(content, topK=topK, withWeight=withWeight) if withWeight is True: for tag in tags: - print "tag: %s\t\t weight: %f" % (tag[1],tag[0]) + print "tag: %s\t\t weight: %f" % (tag[0],tag[1]) else: print ",".join(tags)