Last active
June 28, 2020 17:44
-
-
Save aniruddha27/2d2126774f940e653e6b6437e48ee974 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# create a df containing sentence and its output for rule 2 | |
row_list = [] | |
for i in range(len(df3)): | |
sent = df3.loc[i,'Sent'] | |
year = df3.loc[i,'Year'] | |
# rule | |
output = rule2(sent) | |
dict1 = {'Year':year,'Sent':sent,'Output':output} | |
row_list.append(dict1) | |
df_rule2 = pd.DataFrame(row_list) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment