Exemplo n.º 1
0
def main():
    tweet_file = open(sys.argv[1])
    stdn_freq_file = open(sys.argv[2])
    stdn_freq = grade_helper.parse_str_float_lines(stdn_freq_file)
    soln_freq = compute_soln_freq(tweet_file)
    grade_helper.check_terms(stdn_freq, soln_freq)
    grade(stdn_freq, soln_freq)
Exemplo n.º 2
0
def main():
    tweet_file = open(sys.argv[1])
    stdn_freq_file = open(sys.argv[2])
    stdn_freq = grade_helper.parse_str_float_lines(stdn_freq_file)
    soln_freq = compute_soln_freq(tweet_file)
    grade_helper.check_terms(stdn_freq, soln_freq)
    grade(stdn_freq, soln_freq)
Exemplo n.º 3
0
def main():
    pre_sent_file = open(sys.argv[1])
    tweet_file = open(sys.argv[2])
    student_sent_file = open(sys.argv[3])

    pre_sent = parse_afinn.parse_sentiment_file(pre_sent_file)
    solution_sentiments = get_term_sentiments(pre_sent, tweet_file)
    student_sentiments = grade_helper.parse_str_float_lines(student_sent_file)

    grade_helper.check_terms(student_sentiments, solution_sentiments)
    grade(student_sentiments, solution_sentiments)
Exemplo n.º 4
0
def main():
    input_file_handle = open(sys.argv[1])
    soln = {'a' : 1}
    stdn = grade_helper.parse_str_float_lines(input_file_handle)
    grade_helper.check_terms(stdn, soln)