Last active
February 23, 2017 23:02
-
-
Save takawitter/ae24f6667c925c9fe619 to your computer and use it in GitHub Desktop.
The script that call Translation service on Language Grid.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Grab('org.langrid:jp.go.nict.langrid.client.soap:1.0.8') | |
@Grab('org.langrid:jp.go.nict.langrid.service.language_1_2:1.0.8') | |
import jp.go.nict.langrid.client.soap.SoapClientFactory; | |
import jp.go.nict.langrid.service_1_2.translation.TranslationService; | |
println new SoapClientFactory().create( | |
TranslationService.class, | |
new URL("http://langrid.org/service_manager/invoker/TranslationServiceId"), | |
"yourid", | |
"yourpass").translate("en", "ja", "hello"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment