def _count_token_with_match(self, answer, match):
"""Count answer match FLAG
"""
text = nltk.word_tokenize(answer)
post = nltk.pos_tag(text)
count = 0
for k, v in post:
if v == match:
count += 1
return count
feature_construction.py 文件源码
python
阅读 39
收藏 0
点赞 0
评论 0
评论列表
文章目录