You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.
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
The text was updated successfully, but these errors were encountered:
@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 !
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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?
The text was updated successfully, but these errors were encountered: