Beispiel #1
0
 def __init__(self):
     multiwheelUnit._init()
     multiwheelUnit.set_value('userid', 1)
     self._aiml_kernal = aiml_cn.Kernel()
     self._aiml_kernal.learn('../../resource/template.aiml')
     self._aiml_kernal.learn('../../resource/contain_template.aiml')
     self._aiml_kernal.learn('../../resource/multiwheelQA.aiml')
     self._aiml_kernal.learn('../../resource/time_template.aiml')
Beispiel #2
0
    def __init__(cls):
        cls._aiml_kernal = aiml_cn.Kernel()
        cls._aiml_kernal.learn('../../resource/navi_template.aiml')
        cls._aiml_kernal.learn('../../resource/contain_template.aiml')
        cls._aiml_kernal.learn('../../resource/time.aiml')

        cls._aiml_kernal.learn('../../resource/condition.aiml')
        cls._aiml_kernal.learn('../../resource/information.aiml')
        cls._aiml_kernal.learn('../../resource/business.aiml')
        cls.room_list, cls.room_variant_list, cls.floor_list, cls.floor_variant_list, cls.area_list, cls.area_variant_list, cls.resource_list, cls.resource_variant_list, cls.restype_list, cls.restype_variant_list, cls.card_list, cls.card_variant_list, cls.library_list, cls.library_variant_list, cls.service_list, cls.service_variant_list = Neo4jPrepare.get_all_varname(
        )
        jieba.load_userdict("../../resource/guotu_dict.txt")
        cls.stopwords = [
            '什么', '哪里', '怎么', '有', '走', '去', '可以', '如何', '怎样', '的', '地', '得'
        ]
        '''
Beispiel #3
0
 def __init__(self):
     self._aiml_kernal = aiml_cn.Kernel()
     self._aiml_kernal.learn('../../resource/template.aiml')
     self._aiml_kernal.learn('../../resource/contain_template.aiml')