def create_tags_for_package(package_name):
"""Create tags for a package based on its name."""
stop_words = set(['org', 'com', 'io', 'ch', 'cn'])
tags = []
tags = set([tag.lower() for tag in wordpunct_tokenize(package_name) if
tag not in string.punctuation and tag not in stop_words
])
return list(tags)[:MAX_TAG_COUNT]
analytics_platform_util.py 文件源码
python
阅读 23
收藏 0
点赞 0
评论 0
评论列表
文章目录