Created
June 17, 2019 07:28
-
-
Save DataSolveProblems/f6cf19e6e155aef1a6ecf231a3730df4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
from google.cloud import translate | |
os.environ['GOOGLE_APPLICATION_CREDENTIALS'] = r"<CLIENT_SECRET.json>" | |
translate_client = translate.Client() | |
inputStrings = 'Sample Text'' | |
result = translate_client.detect_language(inputStrings) | |
print(result) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment