entities.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:korean_restaurant_reservation 作者: JudeLee19 项目源码 文件源码
def __init__(self):
        self.entities = {
                '<cuisine>' : None,
                '<location>' : None,
                '<party_size>' : None,
                '<rest_type>' : None,
                }
        self.num_features = 4 # tracking 4 entities
        self.rating = None

        # constants
        self.party_sizes = ['??', '??', '??', '?', '??', '?', '??', '???', '??', '???', '??', '??']

        self.locations = ['??', '???', '???', '???', '??', '??', '??', '????', '??', '??', 'LA']

        self.cuisines = ['??','??','???', '????', '??', '??', '??', '??', '??', '???', '??', '???']

        self.rest_types = ['??', '?','??', '??']

        self.EntType = Enum('Entity Type', '<party_size> <location> <cuisine> <rest_type> <non_ent>')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号