sourceContentSelector.py 文件源码

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

项目:QuestionAnswerNLP 作者: debjyoti385 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号