-
-
31 Jan 2013 21:10:21 UTC
- Distribution: Lingua-Translate-Bing
- Module version: 0.04
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (1)
- Testers (290 / 230 / 32)
- Kwalitee
Bus factor: 0- 95.00% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (4.99KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Carp
- JSON::XS
- LWP::Protocol::https
- LWP::UserAgent
- SOAP::Lite
- Test::More
- Time::HiRes
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Lingua::Translate::Bing - Class for accessing the functions of translation, provided by the "Bing Translation Api".
VERSION
Version 0.04
SYNOPSIS
use Lingua::Translate::Bing; my $translator = Lingua::Translate::Bing->new(client_id => "1111111", client_secret => "111111"); print $translator->translate("Hello", "ru"); ...
CONSTRUCTORS
new(%args)
%args contains:
- client_id
- client_secret
that you will must get in http://datamarket.azure.com/dataset/bing/microsofttranslator.
ATTENTION! Microsoft offers free access to Bing Translator for no more than 2,000,000 characters/month.
getLanguagesForTranslate()
Return array of supported languages.
detect($text)
Return text input language code.
translate($text, $to, $from)
Return translation of input text.
- $text
-
Text for translation.
- $to
-
Target language code.
- $from
-
Language code of input text. Not requeried, but may by mistakes if don't set this argument. It will may be occure because <B>detect</B> method don't define correct language always.
AUTHOR
Milovidov Mikhail,
<milovidovwork at yandex.ru>
BUGS
Please report any bugs or feature requests to
bug-bingtranslationapi at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=BingTranslationApi. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Lingua::Translate::Bing
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN
LICENSE AND COPYRIGHT
Copyright 2012 Milovidov Mikhail.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
Module Install Instructions
To install Lingua::Translate::Bing, copy and paste the appropriate command in to your terminal.
cpanm Lingua::Translate::Bing
perl -MCPAN -e shell install Lingua::Translate::Bing
For more information on module installation, please visit the detailed CPAN module installation guide.