Datasets:

Modalities:
Text
Languages:
English
Libraries:
Datasets
License:
asahi417 commited on
Commit
a7f1986
1 Parent(s): 6ce12d0

Update process.py

Browse files
Files changed (1) hide show
  1. process.py +1 -1
process.py CHANGED
@@ -34,7 +34,7 @@ def wget(url, cache_dir: str = './cache'):
34
  def read_file(file_name):
35
  with open(file_name) as f_reader:
36
  df = pd.DataFrame([i.split('\t') for i in f_reader.read().split('\n') if len(i) > 0], columns=['relation', 'head', 'tail', 'flag'])
37
- df_positive = df[df['flag'] == '1']
38
  df_positive.pop('flag')
39
  #df_positive = df_positive[[i not in exclude for i in df_positive.relation]]
40
  df_positive = df_positive[[not i.startswith("Not") for i in df_positive.relation]]
 
34
  def read_file(file_name):
35
  with open(file_name) as f_reader:
36
  df = pd.DataFrame([i.split('\t') for i in f_reader.read().split('\n') if len(i) > 0], columns=['relation', 'head', 'tail', 'flag'])
37
+ # df_positive = df[df['flag'] == '1']
38
  df_positive.pop('flag')
39
  #df_positive = df_positive[[i not in exclude for i in df_positive.relation]]
40
  df_positive = df_positive[[not i.startswith("Not") for i in df_positive.relation]]