I got a problem with google trans I have to write the code for translation but when I run it shows the output same with the input I have tried this problem around 3-4 hour but can not be solved it
guys please give me the answer and give me the suggestion
from googletrans import Translator
translator = Translator()
result = translator.translate('안녕하세요.',dest='en')
print(result.text)
And gives me output like 안녕하세요. it was the same with the input I give
so guys please help I need your help
thank you very kind of you
Related
I want to display Integrals, in the nice format as shown from the command line but when I print them from inside a program they come out nasty. Both examples are shown in the attachment, I think this will explain the problem.
I am using sympy to create the Integrals.
Cheers, Paul
I have googled and googled but I do not even find an example fo this output from a script(program)
I have tried a few online encoding detectors without success. The general format is <U+XXXY> where X is numeric and Y is alphabetical. I know the content when decoded should be Cyrillic however I am struggling to find a decoder that I can use.
I need to know the name of the encoding. Also, if anyone knows an online decoder then that would be awesome!
Thanks in advance and apologies if the answer is easily googleable. I have failed in my searches.
OK, it appears to be a derivative of U+hex encoded. Don't know what the angle brackets are but substituting them out and using the U+hex decoder here seems to get the right response. I still don't know what this decoding is called so happy to accept a more thorough answer.
I am studying log returns and I cannot understand why we should square the log returns to study autocorrelation. Can anyone clarify?
Thanks
I am currently converting a project in F# to Python, I am a relative amateur in F#, please...what on earth does this line do...
let stats = new DescriptiveStatistics(list)
I cant find a good definition of DescriptiveStatistics anywhere! Please help!
Many thanks
That is very likely from MathNet.
Check the beginning of your F# for the line:
using MathNet.Numerics.Statistics;
https://numerics.mathdotnet.com/DescriptiveStatistics.html
"...in case you need to gather a whole set of statistical characteristics in one pass, is provided by the DescriptiveStatistics class:..." Thanks for your help guys
Is it possible to read the text on a gif with python? I don't think it is but if it is if you could show me how to do it that would be great. Heres what I've been trying to do
def getContents(url):
x = urllib.request.urlopen(url).read()# would add decode, but it gives errors
return x
doing "getContents(gif)" returns weird characters, that look like bytes "\x00" etc. Not sure if their is anything in python that can read them. I apologize if my description is too vague, but its the best I can describe it the problem is open a gif then reading it or opening a jpg and reading it would give read text that's returned.
This is called OCR. There are a number of such libraries, give tesseract a try:
http://code.google.com/p/pytesser/