bc128d9596ed07d1c8d5d98f35b1f6905ad4d819,analyze_tagged_corpus.py,,,#,12

Before Change


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):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: japerk/nltk-trainer
Commit Name: bc128d9596ed07d1c8d5d98f35b1f6905ad4d819
Time: 2014-01-05
Author: japerk@gmail.com
File Name: analyze_tagged_corpus.py
Class Name:
Method Name:


Project Name: snipsco/snips-nlu
Commit Name: 75df2742635b09f97e8d7ec9396750aa17046567
Time: 2017-03-24
Author: tristan.deleu@gmail.com
File Name: snips_nlu/intent_parser/builtin_intent_parser.py
Class Name: BuiltinIntentParser
Method Name: get_intent


Project Name: bambinos/bambi
Commit Name: 5bb62768d064583aef9efaf5b0838878e11f71e3
Time: 2016-08-14
Author: tyarkoni@gmail.com
File Name: bambi/models.py
Class Name: RandomTerm
Method Name: _setup