def __init__(self): """ Constructor for User_Policy_Agenda class. """ self.max_turn = 40 self.max_initiative = 4 self.goal_generator = GoalGenerator() self.__turn = 0 self.goal = None self.agenda = None Policy.__init__(self)
def __init__(self): """ Constructor for User_Policy_Agenda class. """ self.max_turn = 40 self.max_initiative = 4 self.goal_generator = GoalGenerator(corpus_path=os.path.join(os.path.dirname( os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))), 'data/multiwoz/annotated_user_da_with_span_full.json')) self.__turn = 0 self.goal = None self.agenda = None Policy.__init__(self)
def __init__(self): """ Constructor for User_Policy_Agenda class. """ self.max_turn = 40 self.max_initiative = 4 self.goal_generator = GoalGenerator(corpus_path=os.path.join( os.path.dirname( os.path.dirname( os.path.dirname(os.path.dirname(os.path.abspath( __file__))))), 'data/camrest/CamRest676_v2.json')) self.__turn = 0 self.goal = None self.agenda = None Policy.__init__(self)
def __init__(self, max_goal_num=100, seed=2019): """ Constructor for User_Policy_Agenda class. """ self.max_turn = 40 self.max_initiative = 4 self.goal_generator = GoalGenerator(corpus_path=os.path.join(os.path.dirname( os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))), 'data/multiwoz/annotated_user_da_with_span_full.json')) self.__turn = 0 self.goal = None self.agenda = None random.seed(seed) self.goal_seeds = [random.randint(1, 1e7) for i in range(max_goal_num)] Policy.__init__(self)
def __init__(self): Policy.__init__(self) self.last_state = {}
def __init__(self): Policy.__init__(self) self.last_state = {} self.db = Database()