Skip to content

Commit f8a5663

Browse files
authored
Merge pull request GoogleCloudPlatform#498 from GoogleCloudPlatform/translate-use-nmt
Translate use nmt
2 parents 47d84ab + ca565e2 commit f8a5663

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

translate/pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ limitations under the License.
1515
-->
1616
<project>
1717
<modelVersion>4.0.0</modelVersion>
18-
<groupId>com.google.cloud.translate.samples</groupId>
18+
<groupId>com.example.cloud.translate.samples</groupId>
1919
<artifactId>translate</artifactId>
2020
<version>1.0</version>
2121
<name>translate</name>
@@ -59,7 +59,7 @@ limitations under the License.
5959
<configuration>
6060
<archive>
6161
<manifest>
62-
<mainClass>com.google.cloud.translate.samples.TranslateText</mainClass>
62+
<mainClass>com.example.cloud.translate.samples.TranslateText</mainClass>
6363
</manifest>
6464
</archive>
6565
<descriptorRefs>

translate/src/main/java/com/google/cloud/translate/samples/TranslateText.java renamed to translate/src/main/java/com/example/cloud/translate/samples/TranslateText.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.google.cloud.translate.samples;
17+
package com.example.cloud.translate.samples;
1818

1919
import com.google.cloud.RetryParams;
2020
import com.google.cloud.translate.Detection;
@@ -79,7 +79,7 @@ public static void translateTextWithOptionsAndModel(
7979
TranslateOption tgtLang = TranslateOption.targetLanguage(targetLang);
8080

8181
// Use translate `model` parameter with `base` and `nmt` options.
82-
TranslateOption model = TranslateOption.model("base");
82+
TranslateOption model = TranslateOption.model("nmt");
8383

8484
Translation translation = translate.translate(sourceText, srcLang, tgtLang, model);
8585
out.printf("Source Text:\n\tLang: %s, Text: %s\n", sourceLang, sourceText);

translate/src/test/java/com/google/cloud/translate/samples/TranslateTextTest.java renamed to translate/src/test/java/com/example/cloud/translate/samples/TranslateTextTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
package com.google.cloud.translate.samples;
17+
package com.example.cloud.translate.samples;
1818

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

0 commit comments

Comments
 (0)