Update process.py
Browse files- 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]]
|