Loading process_srl.py +2 −0 Original line number Diff line number Diff line Loading @@ -14,6 +14,7 @@ def load_output(dir='outputs', combine=False): all_lines = [] for p, d, fs in os.walk(dir): fs = [f for f in fs if not f.startswith('srl')] for i in fs: with open(os.path.join(p, i), encoding='utf-8') as i: all_lines.extend(i.readlines()[1:]) Loading Loading @@ -75,6 +76,7 @@ output = output[output['name'] != 'Ryan'] #print('Arg-0 only {}:'.format(df.shape)) # combine output print(output.sent_id.value_counts()) output['sent_id'] = output['sent_id'].astype(float) sent['sent_id'] = sent['sent_id'].astype(float) df = pd.merge(output, sent, on=['sent_id']) Loading Loading
process_srl.py +2 −0 Original line number Diff line number Diff line Loading @@ -14,6 +14,7 @@ def load_output(dir='outputs', combine=False): all_lines = [] for p, d, fs in os.walk(dir): fs = [f for f in fs if not f.startswith('srl')] for i in fs: with open(os.path.join(p, i), encoding='utf-8') as i: all_lines.extend(i.readlines()[1:]) Loading Loading @@ -75,6 +76,7 @@ output = output[output['name'] != 'Ryan'] #print('Arg-0 only {}:'.format(df.shape)) # combine output print(output.sent_id.value_counts()) output['sent_id'] = output['sent_id'].astype(float) sent['sent_id'] = sent['sent_id'].astype(float) df = pd.merge(output, sent, on=['sent_id']) Loading