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)