def __init__(self, args):
        """
        Load the ontology.

        :param args: contain the domain ontology
        """
        super(RandomPolicy, self).__init__()

        if 'ontology' in args:
            ontology = args['ontology']
        else:
            raise ValueError('No ontology provided for RandomPolicy!')

        self.ontology = None
        if isinstance(ontology, Ontology):
            self.ontology = ontology
        elif isinstance(ontology, str):
            self.ontology = Ontology(ontology)
        else:
            raise ValueError('Unacceptable ontology type %s ' % ontology)

        self.intents = ['welcomemsg', 'inform', 'request', 'hello', 'bye',
                        'repeat', 'offer']

        Load the ontology.

        :param args: contain the domain ontology
        
plato/agent/component/dialogue_policy/random_policy.py