raptorkwok/cantonese-chinese-parallel-corpus
Viewer • Updated • 185k • 96 • 3
Configuration Parsing Warning:Config file tokenizer_config.json cannot be fetched (too big)
This is a Cantonese sentence tokenizer based on BART Chinese. It can be used along with our CCPC Parallel Corpus dataset.
from transformers import BertTokenizer
tokenizer = BertTokenizer.from_pretrained("raptorkwok/pyctokenizer")
print(tokenizer.tokenize("我哋去咗尖沙咀睇醫生呀!"))
# Output: ['我哋', '去', '咗', '尖沙咀', '睇醫生', '呀', '!']
Base model
OpenMOSS-Team/bart-base-chinese