Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# create a df containing sentence and its output for rule 2
row_list = []
# df2 contains all the sentences from all the speeches
for i in range(len(df2)):
sent = df2.loc[i,'Sent']
year = df2.loc[i,'Year']
output = rule2(sent)
dict1 = {'Year':year,'Sent':sent,'Output':output}
df_rule2_all = pd.DataFrame(row_list)
# check rule output on complete speeches
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.