Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Language samples #845

Merged
merged 7 commits into from
Sep 19, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions language/analysis/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,20 @@ java -cp target/language-entities-1.0-jar-with-dependencies.jar \
"There's nothing better than searching for ice cream on Google."
```

Analyze categories in text Beta
```
java -cp target/language-entities-1.0-jar-with-dependencies.jar \
com.google.cloud.language.samples.AnalyzeBeta classify \
"Android is a mobile operating system developed by Google, based on the Linux kernel and designed primarily for touchscreen mobile devices such as smartphones and tablets."
```

Analyze categories in GCS file Beta
```
java -cp target/language-entities-1.0-jar-with-dependencies.jar \
com.google.cloud.language.samples.AnalyzeBeta classify \
"gs://cloud-samples-tests/natural-language/android-text.txt"
```

Run beta demo from *nix or OSX
```
demo-beta.sh
Expand Down
10 changes: 2 additions & 8 deletions language/analysis/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@ limitations under the License.

<dependencies>
<!-- [START dependencies] -->
<!-- TODO replace with release version -->
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-language</artifactId>
<version>0.21.1-beta</version>
<version>0.22.1-beta-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
Expand All @@ -41,13 +42,6 @@ limitations under the License.
</dependency>
<!-- [END dependencies] -->

<!-- FIXME: remove after client fixes depenency issue -->
<dependency>
<groupId>com.google.auth</groupId>
<artifactId>google-auth-library-oauth2-http</artifactId>
<version>0.7.1</version>
</dependency>

<!-- Test Dependencies -->
<dependency>
<groupId>junit</groupId>
Expand Down
Loading