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)
entityResolutionAndFilter.py 文件源码
python
阅读 16
收藏 0
点赞 0
评论 0
评论列表
文章目录