Exemple #1
0
def main():
	feature_opt.prep("training")
#	feature_opt.calculate_vocab("vocabularies/slang", "vocabularies/slang-optimized", "training")
	feature_opt.stats("vocabularies/slang-optimized-vocabulary", "classifications/slang-training", "probabilities/slang-training", "training")

	feature_opt.prep("test")
	feature_opt.stats("vocabularies/slang-optimized-vocabulary", "classifications/slang-test", "probabilities/slang-test", "test")
Exemple #2
0
def main():
    feature_opt.prep("training")
    #	feature_opt.calculate_vocab("vocabularies/slang", "vocabularies/slang-optimized", "training")
    feature_opt.stats("vocabularies/slang-optimized-vocabulary",
                      "classifications/slang-training",
                      "probabilities/slang-training", "training")

    feature_opt.prep("test")
    feature_opt.stats("vocabularies/slang-optimized-vocabulary",
                      "classifications/slang-test", "probabilities/slang-test",
                      "test")
Exemple #3
0
def main():
	# prep data
	feature_opt.prep("training")
	# optimize vocabulary
#	feature_opt.calculate_vocab("vocabularies/exaggeration", "vocabularies/exaggeration-optimized", "training")
	# record optimal linear separator
	feature_opt.stats("vocabularies/exaggeration-optimized", "classifications/exaggeration-training", "probabilities/exaggeration-training", "training")

# NOW EVALUATE TEST DATA
	# prep data
	feature_opt.prep("test")
	# finally produce classifications!
	feature_opt.stats("vocabularies/exaggeration-optimized", "classifications/exaggeration-test", "probabilities/exaggeration-test", "test")
Exemple #4
0
def main():
    # prep data
    feature_opt.prep("training")
    # optimize vocabulary
    #	feature_opt.calculate_vocab("vocabularies/exaggeration", "vocabularies/exaggeration-optimized", "training")
    # record optimal linear separator
    feature_opt.stats("vocabularies/exaggeration-optimized",
                      "classifications/exaggeration-training",
                      "probabilities/exaggeration-training", "training")

    # NOW EVALUATE TEST DATA
    # prep data
    feature_opt.prep("test")
    # finally produce classifications!
    feature_opt.stats("vocabularies/exaggeration-optimized",
                      "classifications/exaggeration-test",
                      "probabilities/exaggeration-test", "test")