Datasets:

Modalities:
Text
Languages:
English
Libraries:
Datasets
License:
asahi417 commited on
Commit
fcb909b
1 Parent(s): 393837f

Update min_entity_filter.py

Browse files
Files changed (1) hide show
  1. 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] >= parameters_min_e_freq
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']