def _tag(self, tok):
if isinstance(tok, tuple):
return tok[1]
elif isinstance(tok, Tree):
return tok.label()
else:
raise ValueError('chunk structures must contain tagged '
'tokens or trees')
regexp.py 文件源码
python
阅读 20
收藏 0
点赞 0
评论 0
评论列表
文章目录