2

I am trying to translate a column which contains names of Chinese company and I would like to translate it to the actual English word and not the meaning of the word. Can anyone help me here.

1
  • show code and full error message. Commented Feb 27, 2020 at 3:57

1 Answer 1

1

you could try install module "pip install pinyin", then print it out by:

print pinyin.get('你好', format="strip", delimiter=" ")
ni hao
Sign up to request clarification or add additional context in comments.

3 Comments

I have tried installing pinyin but when I use pinyin.get it says invalid syntax. I have also restarted my kernel but no luck.
well I was able to install but pinyin.get('爱派尔') is giving output 'àipàiěr', actually tis is Apple
@YashishKarkera I you get invalid syntax error. Just try print(pinyin.get('你好', format="strip", delimiter=" ")) , that worked for me.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.