摘要: class MyCorpus(object): def __iter__(self): for line in open('mycorpus.txt'): # assume there's one document per line, tokens separated by whitespace y 阅读全文
posted @ 2022-03-27 08:00 青竹之下 阅读(20) 评论(0) 推荐(0) 编辑