Questions tagged [goslate]

Goslate provides a free Python API to Google's translation service by querying the Google Translate website.

Goslate provides a free Python API to Google's translation service by querying the Google Translate website.

Usage example

>>> import goslate
>>> gs = goslate.Goslate()
>>> print gs.translate('hello world', 'de')
hallo welt
14 questions
15
votes
4 answers

HTTPError: HTTP Error 503: Service Unavailable goslate language detection request : Python

I have just started using the goslate library in Python to detect the language of the words in a text but after testing it for 7-8 inputs, I gave the input which had the words written in two languages, Arabic and English. After which, it started…
POOJA GUPTA
  • 2,295
  • 7
  • 32
  • 60
2
votes
1 answer

Python translation using goslate

i am building a translator that translates user input to french using python. I am however encountering a challenge where my goslate function does not catch user input and translate it. I will appreciate your help. import goslate gs =…
yvonne
  • 23
  • 2
2
votes
1 answer

goslate package installation issue with Anaconda on windows

I am trying to install goslate package on anaconda pip install goslate I am getting following traceback error, which shows following lines: [Anaconda3] C:\Users\hyper>pip install goslate Collecting goslate Using cached goslate-1.5.0.tar.gz …
Pranav Waila
  • 418
  • 4
  • 19
2
votes
2 answers

printing unicode for bengali

I'm using goslate for google translate API I can translate Bengali to Engliash - >>> import goslate >>> gs = goslate.Goslate() >>> S = gs.translate("ভাল", 'en') >>> S good But, problem in arising when I want to translate English to Bengali. >>>…
Shahriar
  • 13,460
  • 8
  • 78
  • 95
1
vote
2 answers

Python AttributeError: 'module' object has no attribute 'Goslate'

I am trying Goslate: Free Google Translate API. I installed goslate using sudo pip install goslate I wrote a simple program and executed it using python getbn.py command in my terminal. Here is the code inside getbn.py: import goslate gs =…
Abdullah Al Imran
  • 1,166
  • 2
  • 17
  • 30
0
votes
2 answers

results to be written in excel column B

The below code currently translate each words from the Excel sheet for the words location in Column A, But the results it currently gives me in the editor but I want the translated output/result in the same excel sheet in Column B. The below code…
Shan
  • 33
  • 5
0
votes
1 answer

Python Translation from excel file

I would like to translate the words which are stored in the excel file in column A I have 2 parts (part 1 and Part 2 as stated below) of code, I do not know how to merge these both codes for successful translation for each word in to column…
Shan
  • 33
  • 5
0
votes
0 answers

is this the way of using goslate

iam trying to make a translator using goslate but it shows many errors what to do? the following is my code import goslate text = "Hello world" gs = goslate.Goslate() translated = gs.translate(text,'fr') print(translated) the errors are as…
user12636845
0
votes
1 answer

Python goslate possible firewall probelm

I'm trying to use goslate to translate some excel files. When I try to run the following code I get this error: ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it import goslate gs…
Trubsworth
  • 45
  • 6
0
votes
1 answer

Apply a function to translate a column in pandas dataframe with condition on other columns

data is a pandas dataframe in which language and config['TEXT FIELD'] are columns. I want to translate certain reviews in the text column to english and I am using a function dfApply import goslate def dfApply(row): if row["langauge"] == 'en': …
Bharath Kumar
  • 197
  • 2
  • 11
-1
votes
0 answers

Pydictionary modification for arduino use not functioning

This is My Code That I modified the core of PyDictionary module :: Please Tell the errors if any,ALso My Plan is that after this program I will convert it to C++. I will use it to make a word meaning teller Arduino phone,, Also I have replaced the…
-1
votes
1 answer

sentiment analysis on telugu comments written in english

I'm trying with translate package but getting proxy errors. Tried with goslate. Translated simple words into telugu but after 2-3 successful tries, ended up with an error saying HTTPError: HTTP Error 503: Service Unavailable Goslate looks…
-1
votes
1 answer

goslate translate from spanish to english http error

I am trying to translate 2 big documents from Spanish to English with this code: import goslate big_files = ['lenin.txt', 'liga.txt'] gs = goslate.Goslate() translation = [] for big_file in big_files: with open(big_file, 'r') as f: …
anitasp
  • 577
  • 4
  • 13
  • 35
-2
votes
1 answer

The translation result should be in Column B in the same excel sheet (fruits.xlsx)

The below code translates words that is located in the fruits.xlsx in Column A. I want the output/result should be in Column B import xlrd import goslate loc = r"C:\path\fruits.xlsx" gs = goslate.Goslate() wb = xlrd.open_workbook(loc) sheet =…
kumar
  • 5
  • 5