Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# create a df containing sentence and its output for rule 1
row_list = []
for i in range(len(df3)):
sent = df3.loc[i,'Sent']
year = df3.loc[i,'Year']
output = rule1(sent)
dict1 = {'Year':year,'Sent':sent,'Output':output}
row_list.append(dict1)
df_rule1 = pd.DataFrame(row_list)
# rule 1 achieves 20% result on simple sentences
output_per(df_rule1,'Output')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.