Auto-Tagging Assets
You can manually tag most assets, such as Message Boards, Blogs, Documents, Images, and Web Content Articles. You can tag certain assets, however, automatically when they are created. Tags applied automatically are in only English.
Auto-tagging is only available for text-based documents, text-based web content, and blog entries, as well as images.
Text auto-tagging is disabled by default. You must enable auto-tagging in DXP and then enable a text auto-tagging provider. Finally, you must choose the asset to auto-tag. There are two text auto-tagging providers available for DXP:
-
Google Cloud Natural Language Text Auto-Tagging: Uses the Google Cloud Natural Language API to analyze and automatically tag content.
-
OpenNLP Text Auto-Tagging: Uses the open source Apache OpenNLP library to analyze and automatically tag portal content. Three models are used: location name finder, organization finder, and person name finder.
Use this provider with caution because its accuracy may be limited.
Configuring Google Cloud Natural Language Text Auto-Tagging
-
Click the Global Menu → Control Panel.
-
Click System Settings.
-
Click Assets under Content and Data.
-
Under VIRTUAL INSTANCE SCOPE, click Google Cloud Natural Language Text Auto-Tagging.
-
Fill out the form.
-
Click Save when finished.
The form asks for this information:
API Key: The API key to use for the Google Cloud Natural Language API. For more information, see Google’s documentation on API keys.
Classification Endpoint Enabled: Whether to enable auto-tagging of text using the Google Cloud Natural Language API Classification endpoint.
Confidence: Set the classifier’s confidence of the category. This number represents how certain the classifier is that this category represents the given text.
Entity Endpoint Enabled: Whether to enable auto-tagging of text using the Google Cloud Natural Language API Entity endpoint.
Salience: The salience score for an entity provides information about the importance or centrality of that entity to the entire text.
Enable Google Cloud Natural Language Text Auto-Tagging For: Choose the asset types to be auto-tagged. Select Document, Blogs Entry, or Web Content Article. To add multiple asset types, click the Add icon () and select the asset type from the menu. You can delete any additional asset types by clicking the Trash icon (
).
The Google Cloud Natural Language provider has been configured.
If there are multiple virtual instances on the server, you can override these settings for each instance from Control Panel → Instance Settings → Assets.
Configuring OpenNLP Text Auto-Tagging
-
Click the Global Menu → Control Panel
-
Click System Settings.
-
Click Assets under Content and Data.
-
Under VIRTUAL INSTANCE SCOPE, click OpenNLP Text Auto-Tagging.
-
Fill out the form.
-
Click Save when finished.
The form asks for this information:
Confidence Threshold: Set the minimum confidence threshold (from 0 to 1, where 1 is the highest confidence). Higher values yield fewer tags because the provider needs more confidence before it applies a tag. Lower values yield more tags.
Enable OpenNLP Text Auto-Tagging For: Choose the asset types to be auto-tagged. Use the menu to select Document, Blogs Entry, or Web Content Article. To add multiple asset types, click the Add icon () and select the asset type from the menu. You can delete any additional asset types by clicking the Trash icon (
).
The OpenNLP provider has been configured.
If there are multiple virtual instances on the server, you can override these settings for each instance from Control Panel → Instance Settings → Assets.
After changing an asset, you can see the tags displayed while editing it. An example for this is Blogs Entry.
-
Follow the previous steps on See Configuring OpenNLP Text Auto Tagging and proceed to the OpenNLP Text Auto-Tagging page under VIRTUAL INSTANCE SCOPE.
-
Set your Confidence Threshold value to
0.01
. -
In Enable OpenNLP Text Auto-Tagging For, select Blogs Entry.
-
Click Update
-
Go to your Home Page and click the Product Menu → Content and Data → Blogs.
-
Click New and enter your new blog. The more text you have, the more tags can be generated.
-
Click Publish when finished.
-
Click the Options icon (
) and click Edit.
-
Select the Categorization field and under Other Metadata, your tags appear.