Skip to content

Commit

Permalink
Minor: Resolve protected namespace warning (#18109)
Browse files Browse the repository at this point in the history
  • Loading branch information
SumanMaharana authored Oct 4, 2024
1 parent 2436337 commit d9b15ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ingestion/src/metadata/pii/scanners/ner_scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from collections import defaultdict
from typing import Any, Dict, List, Optional, Tuple, Union

from pydantic import BaseModel
from pydantic import BaseModel, ConfigDict

from metadata.generated.schema.entity.classification.tag import Tag
from metadata.pii.constants import PII, SPACY_EN_MODEL
Expand All @@ -46,6 +46,7 @@ class StringAnalysis(BaseModel):
class NLPEngineModel(BaseModel):
"""Required to pass the nlp_engine as {"lang_code": "en", "model_name": "en_core_web_lg"}"""

model_config = ConfigDict(protected_namespaces=())
lang_code: str
model_name: str

Expand Down

0 comments on commit d9b15ef

Please sign in to comment.