Enhance your WordPress content with Artificial Intelligence and Machine Learning services.
- Features
- Requirements
- Pricing
- Installation
- Register ClassifAI account
- Set Up Language Processing
- Set Up Image Processing
- WP CLI Usage Instructions
- Data Gathering
- Support
- Changelog
- Contributing
- Classify your content using IBM Watson's Natural Language Understanding API and Microsoft Azure's Computer Vision API
- Supports Watson's Categories, Keywords, Concepts & Entities and Azure's Describe Image
- Automatically classify content and images on save
- Manually generate alt text and image tags for images
- Smartly crop images around a region of interest identified by Computer Vision
- Bulk classify content with WP-CLI
- PHP 7.0+
- WordPress 5.0+
- To utilize the Language Processing functionality, you will need an active IBM Watson account.
- To utilize the Image Processing functionality, you will need an active Microsoft Azure account.
Note that there is no cost to using ClassifAI and that both IBM Watson and Microsoft Azure have free plans for their AI services, but that above those free plans there are paid levels as well. So if you expect to process a high volume of content, then you'll want to review the pricing plans for these services to understand if you'll incur any costs. For the most part, both services' free plans are quite generous and should at least allow for testing ClassifAI to better understand its featureset and could at best allow for totally free usage.
The service that powers ClassifAI's Language Processing, IBM Watson's Natural Language Understanding ("NLU"), has a "lite" pricing tier that offers 30,000 free NLU items per month.
The service that powers ClassifAI's Image Processing, Microsoft Azure's Computer Vision, has a "free" pricing tier that offers 20 transactions per minute and 5,000 transactions per month.
git clone https://github.com/10up/classifai.git && cd classifai
composer install && npm install && npm run build
ClassifAI is a sophisticated solution that we want organizations of all shapes and sizes to count on. To keep adopters apprised of major updates and beta testing opportunities, gather feedback, and prioritize common use cases, we're asking for a little bit of information in exchange for a free key. Your information will be kept confidential.
- Register for a free ClassifAI account here.
- Check for an email from
ClassifAI Team
which contains the registration key. - Note that the email will be sent from
[email protected]
, so please whitelist this email address if needed.
- In the
Registered Email
field, enter the email you used for registration. - In the
Registration Key
field, enter the registration key from the email in step 1 above.
- Register for an IBM Cloud account or sign into your existing one.
- Check for an email from
IBM Cloud
and click theConfirm Account
link. - Log into your account (accepting the privacy policy) and create a new Natural Language Understanding Resource if you do not already have one. It may take a minute for your account to fully populate with the default resource group to use.
- Click
Manage
in the left hand menu, thenShow credentials
on the Manage page to view the credentials for this resource.
The credentials screen will show either an API key or a username/password combination.
- In the
API URL
field enter the URL - Enter your API Key in the
API Key
field.
- In the
API URL
field enter the URL - Enter the
username
value into theAPI User field
. - Enter the
password
into theAPI key
field.
3. Configure Post Types to classify and IBM Watson Features to enable under ClassifAI > Language Processing
- Choose which public post types to classify when saved.
- Choose whether to assign category, keyword, entity, and concept as well as the taxonomies used for each.
Note that Computer Vision can analyze and crop images that meet the following requirements:
- The image must be presented in JPEG, PNG, GIF, or BMP format
- The file size of the image must be less than 4 megabytes (MB)
- The dimensions of the image must be greater than 50 x 50 pixels
- The file must be externally accessible via URL (i.e. local sites and setups that block direct file access will not work out of the box)
- Register for a Microsoft Azure account or sign into your existing one.
- Log into your account and create a new Computer Vision Service if you do not already have one. It may take a minute for your account to fully populate with the default resource group to use.
- Click
Quick start
in the left hand Resource Management menu to view theAPI endpoint
credential for this resource in section2b
. - Click
Keys
in the left hand Resource Management menu to view theKey 1
credential for this resource.
- In the
Endpoint URL
field, enter yourAPI endpoint
. - In the
API Key
field, enter yourKey 1
.
$ wp classifai post {post_ids} [--post_type=post_type] [--limit=limit] [--link=link]
--post_type=post_type
Batch classify posts belonging to this post type. If false
or absent relies on post_ids
.
default: false
options:
- any post type name
false
, if args containspost_ids
{ post_ids }
A comma delimited list of post ids to classify. Used if post_type
is false or absent.
default: true
--limit=limit
Limit classification to N posts.
default: false
options:
false
, no limitN
, max number of posts to classify
--link=link
Whether to link classification results to Taxonomy terms
default: true
$ wp classifai text {text} [--category=bool] [--keyword=bool] [--concept=bool] [--entity=bool] [--input=input] [--only-normalize=bool]
Directly classify text using Watson NLU.
--category=bool
Enables NLU category feature
default: true
--keyword=bool
Enables NLU keyword feature
default: true
--concept=bool
Enables NLU concept feature
default: true
--entity=bool
Enables NLU entity feature
default: true
--input=input
Path to input file or URL
default: false
options:
- path to local file
- path to remote URL
false
, uses args[0] instead
--only-normalize=<bool>
Prints the normalized text that will be sent to the NLU API
default: false
$ wp classifai image {image_ids} [--limit=int] [--force]
Directly classify images using Azure Computer Vision.
--limit=int
Limit number of images to classify.
default: false
--force
Force classifying images regardless of their alt
.
default: false
ClassifAI connects your WordPress site directly to your account with specific service provider(s) (e.g. Microsoft Azure AI, IBM Watson), so no data is gathered by 10up. The data gathered in our registration form is used simply to stay in touch with users so we can provide product updates and news. More information is available in the Privacy Policy on ClassifAIplugin.com.
Active: 10up is actively working on this, and we expect to continue work for the foreseeable future including keeping tested up to the most recent version of WordPress. Bug reports, feature requests, questions, and pull requests are welcome.
A complete listing of all notable changes to ClassifAI are documented in CHANGELOG.md.
Please read CODE_OF_CONDUCT.md for details on our code of conduct, CONTRIBUTING.md for details on the process for submitting pull requests to us, and CREDITS.md for a listing of maintainers, contributors, and libraries for ClassifAI.