Skip to content

Instantly share code, notes, and snippets.

@aniruddha27 aniruddha27/nlp_ie_35.py
Last active Jun 8, 2020

Embed
What would you like to do?
# create a df containing sentence and its output for rule 3
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 = rule3(sent)
dict1 = {'Year':year,'Sent':sent,'Output':output}
row_list.append(dict1)
df_rule3_all = pd.DataFrame(row_list)
# check rule3 output on complete speeches
output_per(df_rule3_all,'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.