PyCantonese is available through pip:
$ pip install pycantonese
The latest code under development is available on Github at pycantonese/pycantonese. To obtain this version for experimental features or for development (the version number has the "-dev" suffix if features/fixes not found in the latest official release through pip are present):
$ git clone https://github.com/pycantonese/pycantonese.git
$ cd pycantonese
$ pip install -r requirements.txt
$ pip install -r dev-requirements.txt
$ python setup.py develop
To run tests:
$ py.test -vv --cov pycantonese pycantonese
$ flake8 pycantonese
Developer: Jackson L. Lee
A talk introducing PyCantonese:
Lee, Jackson L. 2015. PyCantonese: Cantonese linguistic research in the age of big data. Talk at the Childhood Bilingualism Research Centre, Chinese University of Hong Kong. September 15. 2015. Notes+slides
Collaborators: Litong Chen, Charles Lam, Tsz-Him Tsui
Many thanks to the following individuals for code, comments, bug reports, etc.:
Rachel Han, Hill Ma, Stephan Stiller
MIT License. Please see LICENSE.txt
for details.
The HKCanCor dataset included in PyCantonese is substantially modified from
its source in terms of format. The original dataset has a CC BY license.
Please see pycantonese/data/hkcancor/readme.md
for details.