else:
raise ValueError("%s is not a valid sort option" % args.sort)
countlen = max(len(str(tag_counts[tag_counts.max()])) + 2, 9)
// simple reSt table format
print(" ".join(["Tag".center(taglen), "Count".center(countlen)]))
print(" ".join(["="*taglen, "="*(countlen)]))
After Change
if simplify_wsj_tag and args.simplify_tags and args.corpus not in ["conll2000", "switchboard"]:
kwargs = {"simplify_tags": True}
elif not simplify_wsj_tag and args.tagset:
kwargs = {"tagset": args.tagset}
else:
kwargs = {}
for word, tag in tagged_corpus.tagged_words(fileids=args.fileids, **kwargs):