You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there an example showing how to make a provider that maps to a string for replacement in a template?
For example, if I have a snippet like this
class HospitalProvider(BaseProvider):
def __init__(
self,
generator,
):
super().__init__(generator=generator)
self.hospital_name = "My Test Hospital"
fake = RecordsFaker(records = pd.DataFrame() ,locale="en_US")
sentence_templates = [
"My name is {{HOSPITAL}}",
]
fake.add_provider(HospitalProvider)
How do I tell the generator to replace all strings {{HOSPITAL}} with , in this case, My Test Hospital?
The text was updated successfully, but these errors were encountered:
Is there an example showing how to make a provider that maps to a string for replacement in a template?
For example, if I have a snippet like this
How do I tell the generator to replace all strings {{HOSPITAL}} with , in this case, My Test Hospital?
The text was updated successfully, but these errors were encountered: