openedx-unsupported / ease

EASE (Enhanced AI Scoring Engine) is a library that allows for machine learning based classification of textual content. This is useful for tasks such as scoring student essays.
GNU Affero General Public License v3.0
216 stars 96 forks source link

Some lines I can't understand #85

Open KinvenW opened 4 years ago

KinvenW commented 4 years ago

Hi, I have some confusion about the lines (127-133) in feature_extractor.py , I can't understand why 'good_grammar_ratio' should calculated like that. As I see it, good_grammar_ratio should be calculated as good_grammar_ratio = len(overlap_ngrams)/len(pos_ngrams), could you explain your calculation for me?

if (len(pos_ngrams)-len(overlap_ngrams))>0:
      divisor=len(pos_ngrams)/len(pos_seq)
 else:
      ivisor=1
if divisor == 0:
      divisor=1
good_grammar_ratio = (len(pos_ngrams)-len(overlap_ngrams))/divisor
Ming-360 commented 3 years ago

hello, execuse me ,i can't find the main function of this code,can you tell me in which file the main function is ,thank you !

KinvenW commented 3 years ago

@Ming-360 The description of the usage is in the docs folder

Ming-360 commented 3 years ago

@Hongtao-Wu thank you for your reply , i have read the usage in the docs folder , but i can't get the useful information to get-start ,and i have looked through the code but couldn't find the entrance to run the code, could you tell me how you have run the code? can i contact with you by qq or wechat ? it's my wechat - +8615271929117 ,thank you !