def getKeywords(question):
tagged = nltk.tag.pos_tag(question)
tagged = [pair for pair in tagged if pair[1] in key_POS and pair[0].lower() not in aux]
return {ps.stem(tag[0]) for tag in tagged}
# Given a question, return a list of each sentence in the article
# with a score attached to it
sourceContentSelector.py 文件源码
python
阅读 40
收藏 0
点赞 0
评论 0
评论列表
文章目录