Skip to content

Commit

Permalink
Merge pull request #498 from GoogleCloudPlatform/translate-use-nmt
Browse files Browse the repository at this point in the history
Translate use nmt
  • Loading branch information
gguuss authored Feb 2, 2017
2 parents 47d84ab + ca565e2 commit f8a5663
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions translate/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ limitations under the License.
-->
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>com.google.cloud.translate.samples</groupId>
<groupId>com.example.cloud.translate.samples</groupId>
<artifactId>translate</artifactId>
<version>1.0</version>
<name>translate</name>
Expand Down Expand Up @@ -59,7 +59,7 @@ limitations under the License.
<configuration>
<archive>
<manifest>
<mainClass>com.google.cloud.translate.samples.TranslateText</mainClass>
<mainClass>com.example.cloud.translate.samples.TranslateText</mainClass>
</manifest>
</archive>
<descriptorRefs>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package com.google.cloud.translate.samples;
package com.example.cloud.translate.samples;

import com.google.cloud.RetryParams;
import com.google.cloud.translate.Detection;
Expand Down Expand Up @@ -79,7 +79,7 @@ public static void translateTextWithOptionsAndModel(
TranslateOption tgtLang = TranslateOption.targetLanguage(targetLang);

// Use translate `model` parameter with `base` and `nmt` options.
TranslateOption model = TranslateOption.model("base");
TranslateOption model = TranslateOption.model("nmt");

Translation translation = translate.translate(sourceText, srcLang, tgtLang, model);
out.printf("Source Text:\n\tLang: %s, Text: %s\n", sourceLang, sourceText);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package com.google.cloud.translate.samples;
package com.example.cloud.translate.samples;

import static com.google.common.truth.Truth.assertThat;

Expand Down

0 comments on commit f8a5663

Please sign in to comment.