Update min_entity_filter.py
Browse files- min_entity_filter.py +1 -1
min_entity_filter.py
CHANGED
@@ -32,7 +32,7 @@ count_main['sum'] = count_main['subject'] + count_main['object']
|
|
32 |
def filtering(row, target: str = "subject"):
|
33 |
if not row['is_entity']:
|
34 |
return True
|
35 |
-
return row[target] >=
|
36 |
|
37 |
|
38 |
count_filter_sub = count_main[count_main.apply(lambda x: filtering(x, target='subject'), axis=1)]['subject']
|
|
|
32 |
def filtering(row, target: str = "subject"):
|
33 |
if not row['is_entity']:
|
34 |
return True
|
35 |
+
return row[target] >= min_entity_freq
|
36 |
|
37 |
|
38 |
count_filter_sub = count_main[count_main.apply(lambda x: filtering(x, target='subject'), axis=1)]['subject']
|