Skip to content

Commit

Permalink
Merge pull request #94 from usc-isi-i2/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
saggu authored Oct 27, 2021
2 parents 5d05426 + bc212c9 commit d6d77af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@ seaborn
strsim
pyecharts
rltk==2.0.0a20
kgtk==0.7.1
kgtk==1.0.1
Unidecode
pyrallel.lib==0.0.10
4 changes: 3 additions & 1 deletion tl/features/cell_context_matches.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ def initialize(self, raw_input_df, context_dict, label_column):

raw_input_df['kg_labels'].fillna("", inplace=True)
raw_input_df['kg_aliases'].fillna("", inplace=True)
raw_input_df['context'].fillna("", inplace=True)

if self.ignore_column is not None:
_input_df = raw_input_df[(raw_input_df[self.ignore_column].astype(float) == 0)
Expand Down Expand Up @@ -386,7 +387,8 @@ def compute_property_scores(self, row_column_pairs: set, n_context_columns: set)
int_prop['column'] = col
int_prop['col2'] = col2
properties_df_list.append(int_prop)
properties_df = pd.concat(properties_df_list)
if len(properties_df_list) > 0:
properties_df = pd.concat(properties_df_list)
property_value_list = []
grouped_obj = properties_df.groupby(['column', 'col2', 'property_'])
for cell, group in grouped_obj:
Expand Down

0 comments on commit d6d77af

Please sign in to comment.