Skip to content

Commit

Permalink
fix entities
Browse files Browse the repository at this point in the history
  • Loading branch information
wongjingping committed Nov 1, 2024
1 parent a986ba4 commit 1c2e240
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_utils_pruning.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def test_metadata_diff_coldesc():
def test_get_md_emb_no_shuffle(test_metadata):
column_emb, column_csv, column_ner, column_join = test_metadata
question = "How many flights start from Los Angeles Airport (LAX)?"
assert get_entity_types(question) == {"FAC"}
assert get_entity_types(question) == {"GPE", "ORG"}
k = 3
threshold = 0.0

Expand Down Expand Up @@ -129,7 +129,7 @@ def test_get_md_emb_no_shuffle(test_metadata):
def test_get_md_emb_shuffle(test_metadata):
column_emb, column_csv, column_ner, column_join = test_metadata
question = "How many flights start from Los Angeles Airport (LAX)?"
assert get_entity_types(question) == {"FAC"}
assert get_entity_types(question) == {"GPE", "ORG"}
k = 3
threshold = 0.0

Expand Down Expand Up @@ -195,7 +195,7 @@ def test_get_md_emb_sql_emb_empty(test_metadata):
def test_get_md_emb_coldesc(test_metadata_diff_coldesc):
column_emb, column_csv, column_ner, column_join = test_metadata_diff_coldesc
question = "How many flights start from Los Angeles Airport (LAX)?"
assert get_entity_types(question) == {"FAC"}
assert get_entity_types(question) == {"GPE", "ORG"}
k = 3
threshold = 0.0

Expand Down

0 comments on commit 1c2e240

Please sign in to comment.