PyCantonese: Cantonese Linguistics and NLP in Python
pycantonese.org
pycantonese.org
The trickiest thing to explain to people is that Cantonese is a diaglossika. It's spoken, but to write you would use mandarin. So there aren't a ton of giant written language corpuses to train on.
AFAICT that's why tools like this often use simple heuristics to do word segmentation. I remember going down a deep rabbit hole, before finally just packaging a small tool to do cantonese word segmentation using the A* algorithm:
A lot of us who speak Cantonese as mother tongue use "Cantonese" as written languages on online forums / medias. Written Mandarin normally appear on news or more formal environment.
That said parsing is not a solved problem in a lot of languages (particularly ones without spaces) and frameworks like spaCy just integrate existing solutions into a common pipeline and datastructures.