https://github.com/chientrm/cn2en
Python module translating Chinese into English
https://github.com/chientrm/cn2en
Last synced: about 1 year ago
JSON representation
Python module translating Chinese into English
- Host: GitHub
- URL: https://github.com/chientrm/cn2en
- Owner: chientrm
- License: mit
- Created: 2021-11-21T17:21:19.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-10T15:30:16.000Z (over 4 years ago)
- Last Synced: 2025-03-05T18:50:30.778Z (over 1 year ago)
- Language: Python
- Size: 16 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Chinese to English translation
This package provide the function to translate a Chinese sentence into an English sentence.
## Requirements
- Python version >= 3.6 and <= 3.9
## Install
```
pip install cn2en
```
## Usage
```
from cn2en.model import Model
model = Model()
print(model.translate('湯姆不在床上。'))
```