langtest.transform.clinical.Posology#

class Posology(drug_swap_type='generic_to_brand', seed=25)#

Bases: object

Posology class is replacing the generic to brand or brand to generic drug names in given text

__init__(drug_swap_type='generic_to_brand', seed=25) None#

Initialize the Posology class.

Parameters:
  • drug_swap_type (str, optional) – The type of drug swap to perform. Defaults to “generic_to_brand”.

  • seed (int, optional) – The seed value for random number generation. Defaults to 25.

Methods

__init__([drug_swap_type, seed])

Initialize the Posology class.