The Decidim::Ai is a library that aims to provide Artificial Intelligence tools for Decidim. This plugin has been initially developed aiming to analyze the content and provide spam classification using Naive Bayes algorithm. All AI related functionality provided by Decidim should be included in this same module.
For more documentation on the AI tools API, please refer to documentation
In order to install use this module, you need at least Decidim 0.30 to be installed.
To install this module, run in your console:
bundle add decidim-ai
After that, add an initializer file as presented in the documentation
Then, you need to run the below command, so that the reporting user is created.
bin/rails decidim:ai:spam:create_reporting_user
Then you can use the below command to train the engine with the module dataset:
bin/rails decidim:ai:spam:load_module_dataset
Add the queue name to config/sidekiq.yml
file:
:queues:
- ["default", 1]
- ["spam_analysis", 1]
# The other yaml entries
See Decidim.
See Decidim.