An open API service indexing awesome lists of open source software.

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

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('湯姆不在床上。'))
```