sogou-tr

sogou translate no frills


License
MIT
Install
pip install sogou-tr==0.1.0

Documentation

sogou-tr

[tests]pythonCode style: blackLicense: MITPyPI version

sogou translate no frills

Installation

pip install sogou-tr

# pip install sogou-tr -U  # upgrade to the latest version

Usage

from sogou_tr.sogou_tr import sogou_tr

text = "An employee at Spataro's No Frills, located at 8990 Chinguacousy Rd, has tested positive for the virus."
print(text, "\n")
print("to zh:", sogou_tr(text), "\n")
print("to de:", sogou_tr(text, to_lang="de"), "\n")

# to zh: 位于金瓜库西路8990号的斯帕塔罗百货公司的一名员工检测出病毒呈阳性。
# to de: Ein Mitarbeiter von Spataro es No Frills, gelegen 8990 Chinguacousy Rd, hat positiv auf das Virus getestet.

Consult sogou fanyi's homepage for language pairs supported.