gcloud_beta_ml_language_classify-text (1)
NAME
- gcloud beta ml language classify-text - classifies input document into categories
SYNOPSIS
-
gcloud beta ml language classify-text (--content=CONTENT | --content-file=CONTENT_FILE) [--content-type=CONTENT_TYPE; default="plain-text"] [--language=LANGUAGE] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
(BETA) Classifies input document into categories. Returns a list of
Currently only English is supported for this feature.
REQUIRED FLAGS
-
-
Exactly one of these must be specified:
-
- --content=CONTENT
-
Specify input text on the command line. Useful for experiments, or for extremely
short text.
- --content-file=CONTENT_FILE
-
Specify a local file or Google Cloud Storage (format gs://bucket/object)
file path containing the text to be analyzed. More useful for longer text or
data output from another system.
-
-
Exactly one of these must be specified:
OPTIONAL FLAGS
-
- --content-type=CONTENT_TYPE; default="plain-text"
-
Specify the format of the input text. CONTENT_TYPE must be one of:
html, plain-text.
- --language=LANGUAGE
-
Specify the language of the input text. If omitted, the server will attempt to
auto-detect. Both ISO (such as en or es) and BCP-47 (such as
en-US or ja-JP) language codes are accepted.
GCLOUD WIDE FLAGS
These flags are available to all commands: --account, --configuration, --flags-file, --flatten, --format, --help, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity. Run $ gcloud help for details.
API REFERENCE
This command uses the language/v1beta2 API. The full documentation for this API can be found at: cloud.google.com/natural-language
NOTES
This command is currently in BETA and may change without notice. These variants are also available:
- $ gcloud ml language classify-text $ gcloud alpha ml language classify-text