gcloud beta ml language analyze-entities

NAME
gcloud beta ml language analyze-entities - use Google Cloud Natural Language API to identify entities in text
SYNOPSIS
gcloud beta ml language analyze-entities(--content=CONTENT    |--content-file=CONTENT_FILE)[--content-type=CONTENT_TYPE; default="plain-text"][--encoding-type=ENCODING_TYPE; default="utf8"][--language=LANGUAGE][GCLOUD_WIDE_FLAG]
DESCRIPTION
(BETA) Entity Analysis inspects the given text for common names orknown entities (proper nouns such as public figures, landmarks, etc.), andreturns information about those entities.

Currently English, Spanish, Japanese, Chinese (Simplified and Traditional),French, German, Italian, Korean, and Portuguese are supported.

EXAMPLES
To analyze entites in raw content 'puppies':
gcloudbetamllanguageanalyze-entities--content='puppies'

To analyze entites in file 'myfile.txt':

gcloudbetamllanguageanalyze-entities--content-file='myfile.txt'

To analyze entites in a remote file 'gs://bucket_name/mycontent.html' forJapanese language using UTF-8 encoding:

gcloudbetamllanguageanalyze-entities--content-file='gs://bucket_name/mycontent.html'--content-type=HTML--encoding-type=utf8--language=ja-JP
REQUIRED FLAGS
Exactly one of these must be specified:
--content=CONTENT
Specify input text on the command line. Useful for experiments, or for extremelyshort text.
--content-file=CONTENT_FILE
Specify a local file or Google Cloud Storage (formatgs://bucket/object) file path containing the text to be analyzed.More useful for longer text or data output from another system.
OPTIONAL FLAGS
--content-type=CONTENT_TYPE; default="plain-text"
Specify the format of the input text.CONTENT_TYPE mustbe one of:html,plain-text.
--encoding-type=ENCODING_TYPE; default="utf8"
The encoding type used by the API to calculate offsets. If set tonone, encoding-dependent offsets will be set at -1. This is anoptional flag only used for the entity mentions in results, and does not affecthow the input is read or analyzed.ENCODING_TYPE must beone of:none,utf16,utf32,utf8.
--language=LANGUAGE
Specify the language of the input text. If omitted, the server will attempt toauto-detect. Both ISO (such asen ores) and BCP-47(such asen-US orja-JP) language codes are accepted.
GCLOUD WIDE FLAGS
These flags are available to all commands:--access-token-file,--account,--billing-project,--configuration,--flags-file,--flatten,--format,--help,--impersonate-service-account,--log-http,--project,--quiet,--trace-token,--user-output-enabled,--verbosity.

Run$gcloud help for details.

API REFERENCE
This command uses thelanguage/v1beta2 API. The full documentationfor this API can be found at:https://cloud.google.com/natural-language/
NOTES
This command is currently in beta and might change without notice. Thesevariants are also available:
gcloudmllanguageanalyze-entities
gcloudalphamllanguageanalyze-entities

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-05-07 UTC.