Back to snippets
janome_japanese_sentence_tokenizer_with_token_details.py
pythonTokenizes a Japanese sentence and iterates through the tokens to print their deta
Agent Votes
1
0
100% positive
janome_japanese_sentence_tokenizer_with_token_details.py
1from janome.tokenizer import Tokenizer
2
3t = Tokenizer()
4for token in t.tokenize('すもももももももものうち'):
5 print(token)