bigup401 has asked for the wisdom of the Perl Monks concerning the following question:
which module can i use to translate my webpage language to other
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: language translate
by localshop (Monk) on Oct 31, 2018 at 03:55 UTC | |
Here's an example of translating from English to French.
| [reply] [d/l] |
by Aldebaran (Curate) on Nov 11, 2018 at 02:13 UTC | |
Thank you localshop for this write-up and your work on this module. I've been nibbling and lurking at these threads, all the while building out what I can do with them. I went ahead and signed up for google cloud services. Now that I've done it, I'm glad for it and have little fear that google is gonna run away with my credit card anytime soon. They do give you $300 worth of credit and a year for a trial period and promise not to upgrade to paying without your say-so. I built the sdk for debian. 5 commands: easy-peasy. The client is offered in 6 syntaxes, but perl is not one of them. For people who say "perl is dead," that might be proof, but I wonder if perl comes at it differently. Let me ask the question, short of igniting a flame war, is perl unfit for this task? Does this module, WebService::GoogleAPI::Client, seek to brook that gap? I wrote a bash driver for this script so that I could set environment variables before invocation. I get a single warning or error:
I'll put output, perl script, and bash driver between readmore tags Read more... (3 kB)
It would seem that the Oauth isn't correct. What fields should the .json file have? I think one can show the fields with redacted values and not lose his shirt:
I don't think I made many changes from your script except to print values and I took out one of the debug => 0. Looking for a precise definition of what "scoped" project means. Thank you for your comments and scripts, | [reply] [d/l] [select] |
by bigup401 (Pilgrim) on Oct 31, 2018 at 08:57 UTC | |
Google translator nolonger for free so i wanted to use something like a module | [reply] |
by localshop (Monk) on Nov 02, 2018 at 08:58 UTC | |
AutoML translation for example gives free the first 500K characters/month. If you just want basic usage it should be fine - there are more advanced options that include training your own data set etc. | [reply] |
by Aldebaran (Curate) on Nov 02, 2018 at 22:20 UTC | |
by localshop (Monk) on Nov 05, 2018 at 08:09 UTC | |
| |
Re: language translate
by choroba (Cardinal) on Oct 30, 2018 at 23:33 UTC | |
If you insist on Perl, have a look at Treex - but a Machine Translation course is probably needed to use it properly.
| [reply] [d/l] |
Re: language translate
by cavac (Parson) on Oct 31, 2018 at 09:31 UTC | |
Machine translation will mostly get you "somewhat understandable" translations. I'm afraid, if you want to do it with high quality, you'd have to hire a human translator or learn the language yourself. Really depends on what you need.
perl -e 'use MIME::Base64; print decode_base64("4pmsIE5ldmVyIGdvbm5hIGdpdmUgeW91IHVwCiAgTmV2ZXIgZ29ubmEgbGV0IHlvdSBkb3duLi4uIOKZqwo=");'
| [reply] [d/l] |