赞
踩
- # pip install janome -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn
- # https://www.yzktw.com.cn/post/1227318.html
- from janome.tokenizer import Tokenizer
- t = Tokenizer()
- text = "日本語を勉強している"
- tokens = t.tokenize(text)
- for token in tokens:
- print(token.surface)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。