Skip to content

Commit

Permalink
Bugfix in NerModelConfiguration (#1230)
Browse files Browse the repository at this point in the history
  • Loading branch information
ebotiab authored Dec 21, 2023
1 parent e7197da commit a6e253d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
HOSPITAL="ORGANIZATION",
)

LOW_SCORE_ENTITY_NAMES = {}
LOW_SCORE_ENTITY_NAMES = set()
LABELS_TO_IGNORE = {
"O",
"ORG",
Expand Down Expand Up @@ -94,12 +94,12 @@ def __post_init__(self):
@classmethod
def _validate_input(cls, ner_model_configuration_dict: Dict) -> None:
key_to_type = {
"labels_to_ignore": list,
"labels_to_ignore": Collection,
"aggregation_strategy": str,
"alignment_mode": str,
"model_to_presidio_entity_mapping": dict,
"low_confidence_score_multiplier": float,
"low_score_entity_names": list,
"low_score_entity_names": Collection,
"stride": int,
}

Expand Down

0 comments on commit a6e253d

Please sign in to comment.