entityResolutionAndFilter.py 文件源码

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

项目:SetExpan 作者: mickeystroller 项目源码 文件源码
def resolution(surfaceName):
    '''
    input: a surface name of entity
    output: the "normalized" entity name
    process: 1) lowercase
             2) lemmatization
    '''
    tmp = [Word(ele.lower()).lemmatize() for ele in surfaceName.split()]
    # tmp = [ele.lower() for ele in surfaceName.split()]
    return " ".join(tmp)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号