Skip to content

Instantly share code, notes, and snippets.

Created June 5, 2020 21:32
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save aniruddha27/5d881ce076a510f34662bdb7cd5ef9fa to your computer and use it in GitHub Desktop.
# 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}
df_rule1 = pd.DataFrame(row_list)
# rule 1 achieves 20% result on simple sentences
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment