8000 java-docs-samples/language at tasks-pr · shirigithub/java-docs-samples · GitHub
[go: up one dir, main page]

Skip to content
{"payload":{"allShortcutsEnabled":false,"path":"language","repo":{"id":93353343,"defaultBranch":"master","name":"java-docs-samples","ownerLogin":"shirigithub","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2017-06-05T01:34:47.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/3215405?v=4","public":true,"private":false,"isOrgOwned":false},"currentUser":null,"refInfo":{"name":"tasks-pr","listCacheKey":"v0:1627727173.154017","canEdit":false,"refType":"branch","currentOid":"24be7dfa2247f563f0f72fe6bf2f1f30cfa29588"},"tree":{"items":[{"name":"analysis","path":"language/analysis","contentType":"directory"},{"name":"cloud-client","path":"language/cloud-client","contentType":"directory"},{"name":"README.md","path":"language/README.md","contentType":"file"}],"templateDirectorySuggestionUrl":null,"readme":{"displayName":"README.md","richText":"\u003carticle class=\"markdown-body entry-content container-lg\" itemprop=\"text\"\u003e\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch1 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eGoogle Cloud Natural Language API Samples\u003c/h1\u003e\u003ca id=\"user-content-google-cloud-natural-language-api-samples\" class=\"anchor\" aria-label=\"Permalink: Google Cloud Natural Language API Samples\" href=\"#google-cloud-natural-language-api-samples\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eThese samples demonstrate the use of the \u003ca href=\"https://cloud.google.com/natural-language/docs/\" rel=\"nofollow\"\u003eGoogle Cloud Natural Language API\u003c/a\u003e.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003ePrerequisites\u003c/h2\u003e\u003ca id=\"user-content-prerequisites\" class=\"anchor\" aria-label=\"Permalink: Prerequisites\" href=\"#prerequisites\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eDownload Maven\u003c/h3\u003e\u003ca id=\"user-content-download-maven\" class=\"anchor\" aria-label=\"Permalink: Download Maven\" href=\"#download-maven\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eThis sample uses the \u003ca href=\"https://maven.apache.org\" rel=\"nofollow\"\u003eApache Maven\u003c/a\u003e build system. Before getting started, be\nsure to \u003ca href=\"https://maven.apache.org/download.cgi\" rel=\"nofollow\"\u003edownload\u003c/a\u003e and \u003ca href=\"https://maven.apache.org/install.html\" rel=\"nofollow\"\u003einstall\u003c/a\u003e it. When you use\nMaven as described here, it will automatically download the needed client\nlibraries.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eSet Up to Authenticate With Your Project's Credentials\u003c/h3\u003e\u003ca id=\"user-content-set-up-to-authenticate-with-your-projects-credentials\" class=\"anchor\" aria-label=\"Permalink: Set Up to Authenticate With Your Project's Credentials\" href=\"#set-up-to-authenticate-with-your-projects-credentials\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003ePlease follow the \u003ca href=\"https://cloud.google.com/natural-language/docs/getting-started#set_up_your_project\" rel=\"nofollow\"\u003eSet Up Your Project\u003c/a\u003e\nsteps in the Quickstart doc to create a project and enable the\nCloud Natural Language API. Following those steps, make sure that you\n\u003ca href=\"https://cloud.google.com/natural-language/docs/common/auth#set_up_a_service_account\" rel=\"nofollow\"\u003eSet Up a Service Account\u003c/a\u003e,\nand export the following environment variable:\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"export GOOGLE_APPLICATION_CREDENTIALS=/path/to/your-project-credentials.json\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003eexport GOOGLE_APPLICATION_CREDENTIALS=/path/to/your-project-credentials.json\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eSamples\u003c/h2\u003e\u003ca id=\"user-content-samples\" class=\"anchor\" aria-label=\"Permalink: Samples\" href=\"#samples\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ca href=\"/shirigithub/java-docs-samples/blob/tasks-pr/language/analysis\"\u003eAnalyze\u003c/a\u003e is a command line tool to show case the features of the API.\u003c/li\u003e\n\u003c/ul\u003e\n\u003c/article\u003e","errorMessage":null,"headerInfo":{"toc":[{"level":1,"text":"Google Cloud Natural Language API Samples","anchor":"google-cloud-natural-language-api-samples","htmlText":"Google Cloud Natural Language API Samples"},{"level":2,"text":"Prerequisites","anchor":"prerequisites","htmlText":"Prerequisites"},{"level":3,"text":"Download Maven","anchor":"download-maven","htmlText":"Download Maven"},{"level":3,"text":"Set Up to Authenticate With Your Project's Credentials","anchor":"set-up-to-authenticate-with-your-projects-credentials","htmlText":"Set Up to Authenticate With Your Project's Credentials"},{"level":2,"text":"Samples","anchor":"samples","htmlText":"Samples"}],"siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Fshirigithub%2Fjava-docs-samples%2Ftree%2Ftasks-pr%2Flanguage"}},"totalCount":3,"showBranchInfobar":true},"fileTree":{"":{"items":[{"name":".github","path":".github","contentType":"directory"},{"name":".mvn","path":".mvn","contentType":"directory"},{"name":"appengine","path":"appengine","contentType":"directory"},{"name":"bigquery","path":"bigquery","contentType":"directory"},{"name":"cloudtasks","path":"cloudtasks","contentType":"directory"},{"name":"compute","path":"compute","contentType":"directory"},{"name":"datastore","path":"datastore","contentType":"directory"},{"name":"endpoints","path":"endpoints","contentType":"directory"},{"name":"flexible","path":"flexible","contentType":"directory"},{"name":"kms","path":"kms","contentType":"directory"},{"name":"language","path":"language","contentType":"directory"},{"name":"logging","path":"logging","contentType":"directory"},{"name":"monitoring","path":"monitoring","contentType":"directory"},{"name":"pubsub","path":"pubsub","contentType":"directory"},{"name":"spanner","path":"spanner","contentType":"directory"},{"name":"speech","path":"speech","contentType":"directory"},{"name":"storage","path":"storage","contentType":"directory"},{"name":"taskqueue","path":"taskqueue","contentType":"directory"},{"name":"translate","path":"translate","contentType":"directory"},{"name":"unittests","path":"unittests","contentType":"directory"},{"name":"vision","path":"vision","contentType":"directory"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":".gitmodules","path":".gitmodules","contentType":"file"},{"name":".travis.yml","path":".travis.yml","contentType":"file"},{"name":"CONTRIBUTING.md","path":"CONTRIBUTING.md","contentType":"file"},{"name":"ISSUE_TEMPLATE.md","path":"ISSUE_TEMPLATE.md","contentType":"file"},{"name":"LICENSE","path":"LICENSE","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"checkstyle-checker.xml","path":"checkstyle-checker.xml","contentType":"file"},{"name":"circle.yml","path":"circle.yml","contentType":"file"},{"name":"codecov.yml","path":"codecov.yml","contentType":"file"},{"name":"gae-firebase-secrets.json.enc","path":"gae-firebase-secrets.json.enc","contentType":"file"},{"name":"jenkins.sh","path":"jenkins.sh","contentType":"file"},{"name":"mvnw","path":"mvnw","contentType":"file"},{"name":"mvnw.cmd","path":"mvnw.cmd","contentType":"file"},{"name":"pom.xml","path":"pom.xml","contentType":"file"},{"name":"secrets.env.EXAMPLE","path":"secrets.env.EXAMPLE","contentType":"file"},{"name":"secrets.env.enc","path":"secrets.env.enc","contentType":"file"},{"name":"service-account.json.enc","path":"service-account.json.enc","contentType":"file"},{"name":"travis.sh","path":"travis.sh","contentType":"file"}],"totalCount":40}},"fileTreeProcessingTime":12.450555,"foldersToFetch":[],"treeExpanded":true,"symbolsExpanded":false,"csrf_tokens":{"/shirigithub/java-docs-samples/branches":{"post":"g5FLZvkKW27jgOMfUePG7tczcQWTPskYYfKepMcl76w9kAP7w5_nAK6SzMHKKX16jUvpl_XU0l0tgH0MpIdkbA"},"/shirigithub/java-docs-samples/branches/fetch_and_merge/tasks-pr":{"post":"0UqbWNI9Ng_II0YRT5QFLrMtK2BKm53p5VsYqxQjpuxgb5oJqse-5AfFiTWgXW0GclKTOgnXGt8iXNwd_q3fug"},"/shirigithub/java-docs-samples/branches/fetch_and_merge/tasks-pr?discard_changes=true":{"post":"oc4ASB5fwE6VIFjM_8DHI5G4YivDOoM_9PBCKIENwtIQ6wEZZqVIpVrGl-gQCa8LUMfacYB2BAkz94aea4O7hA"}}},"title":"java-docs-samples/language at tasks-pr · shirigithub/java-docs-samples","appPayload":{"helpUrl":"https://docs.github.com","findFileWorkerPath":"/assets-cdn/worker/find-file-worker-7d7eb7c71814.js","findInFileWorkerPath":"/assets-cdn/worker/find-in-file-worker-1ae9fa256942.js","githubDevUrl":null,"enabled_features":{"code_nav_ui_events":false,"react_blob_overlay":false,"accessible_code_button":true,"github_models_repo_integration":false}}}
0