Fetch google nlp classify text¶
NLP • text • 3rd party API • integration • model • topic
Detect topics in text content using Google Cloud's text classification API.
To learn more about the resulting categories and the process see Google's documentation. The list of possible categories is available here.
API integration
To use this step your team needs to have the Google NLP integration configured in Graphext. The corresponding credentials are required to connect to a third-party API. See our help center for details on how to configure your team's integrations.
To enable the Google NLP integration in particular you will need access to Google's NLP service. Follow the instructions here to create the required API key.
Usage¶
The following are the step's expected inputs and outputs and their specific types.
fetch_google_nlp_classify_text(text_column: text, {"param": value}) -> (categories: list[category])
where the object {"param": value}
is optional in most cases and if present may contain any of the parameters described in the
corresponding section below.
Example¶
The step has no parameters, so simply use
fetch_google_nlp_classify_text(ds.text_column) -> (ds.categories)
Inputs¶
text_column: column:text
Column containing the texts to analyze. Texts must be in English and contain at least 20 words, or otherwise will be ignored.
Outputs¶
categories: column:list[category]
One or more categories assigned to each text. For possible categories see here.
Parameters¶
integration: string
ID of the integration you'd like to use.