Commit 1e575001 by gradyward

Cleaned up the essay_set.py file and propogated changes through other files.

parent da78277e
......@@ -43,7 +43,7 @@ def grade(grader_data, submission):
results = {'errors': [], 'tests': [], 'score': 0, 'feedback': "", 'success': False, 'confidence': 0}
has_error = False
grader_set = EssaySet(essaytype="test")
grader_set = EssaySet(essay_type="test")
feedback = {}
model, extractor = get_classifier_and_ext(grader_data)
......
......@@ -82,7 +82,7 @@ def create_essay_set(text, score, prompt_string, generate_additional=True):
for i in xrange(0, len(text)):
x.add_essay(text[i], score[i])
if score[i] == min(score) and generate_additional == True:
x.generate_additional_essays(x._clean_text[len(x._clean_text) - 1], score[i])
x.generate_additional_essays(x._cleaned_spelled_essays[len(x._cleaned_spelled_essays) - 1], score[i])
x.update_prompt(prompt_string)
......
......@@ -85,7 +85,7 @@ class PredictorSet(object):
#Create essay sets for textual features if needed
if len(self._textual_features) == 0:
for i in xrange(0, len(textual_features)):
self._essay_sets.append(essay_set.EssaySet(essaytype=self._type))
self._essay_sets.append(essay_set.EssaySet(essay_type=self._type))
#Add numeric and textual features
self._numeric_features.append(numeric_features)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment