def main(): classifierID = 'naive_bayes_._' + sys.argv[1] input = sys.argv[2] path = home() classifier = load_classifiers(path, classifierID) common_suffixes = load_commons(path, 'common_suffixes') print classifier.classify(pos_features(common_suffixes, input))
def main(): classifierID = 'naive_bayes_._'+sys.argv[1] input = sys.argv[2] path = home() classifier = load_classifiers(path, classifierID) common_suffixes = load_commons(path, 'common_suffixes') print classifier.classify(pos_features(common_suffixes, input))
def main(): featuresID = sys.argv[1] train_naive_bayes(home(), featuresID) print featuresID
def main(): features_brown_news(home())
def main(): featuresID = sys.argv[1] train_decision_tree(home(), featuresID) print featuresID