Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-bernstein committed Nov 7, 2024
1 parent f40c449 commit fedb845
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion adala/skills/collection/entity_extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,6 @@ def extract_indices(self, df):
"""
input_field_name = self._get_input_field_name()
output_field_name = self._get_output_field_name()
df = validate_output_format_for_ner_tag(df, input_field_name, output_field_name)
df = extract_indices(df, input_field_name, output_field_name, self._quote_string_field_name, self._labels_field_name)
return df

Expand Down
5 changes: 2 additions & 3 deletions tests/test_label_studio_skill.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ async def test_label_studio_skill_valid_predictions():
f"Failed {n_failed_preds} predictions for {label_config} {model}"
)
predictions = predictions[is_success]

# filter out adala fields and input field
predictions = predictions[
[
Expand All @@ -417,5 +417,4 @@ async def test_label_studio_skill_valid_predictions():
errored_configs.append((label_config, model, prediction, e))

assert len(failed_configs) == 0, f"Failed configs: {failed_configs}"
# TODO DIA-1600: intermittent nans are sneaking through for Labels
# assert len(errored_configs) == 0, f"Errored configs: {errored_configs}"
assert len(errored_configs) == 0, f"Errored configs: {errored_configs}"

0 comments on commit fedb845

Please sign in to comment.