Commit 155a2c39 by Vik Paruchuri

fixed float bug in grammar and spelling feedback

parent b933419d
......@@ -160,9 +160,8 @@ class FeatureExtractor(object):
def gen_feedback(self, e_set, features=None):
set_grammar=self._get_grammar_errors(e_set._pos,e_set._text,e_set._tokens)
set_grammar_per_character=[set_grammar[m]/len(e_set._text[m]) for m in xrange(0,len(e_set._text))]
set_spell_errors_per_character=[e_set._spelling_errors[m]/len(e_set._text[m]) for m in xrange(0,len(e_set._text))]
e_set._spelling_errors
set_grammar_per_character=[set_grammar[m]/float(len(e_set._text[m])) for m in xrange(0,len(e_set._text))]
set_spell_errors_per_character=[e_set._spelling_errors[m]/float(len(e_set._text[m])) for m in xrange(0,len(e_set._text))]
all_feedback=[]
for m in xrange(0,len(e_set._text)):
individual_feedback=[]
......
in order to replicate this experiment , i would need to know additional information such as the four different samples that they used because i could have choosen metal , carbboard and many other sample materials that they didn t use and would get different results . also i would also need to know the amount of vinegar to pour because this can caute a major change . lastly , they might want to tell where to sit the samples while they dry for minutes because if they are sitting in room temp . or by a light source makes a difference too .
\ No newline at end of file
this is a well written sentence with impeccable grammar . read this and weep .
\ No newline at end of file
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