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.