.. index:: single: text_vectorizer
.. _text_vectorizer/0:

.. rst-class:: right

**object**

``text_vectorizer``
===================

Binary, count, term-frequency, and TF-IDF sparse text vectorization.

| **Availability:** 
|    ``logtalk_load(text_vectorization(loader))``

| **Author:** Paulo Moura
| **Version:** 1:0:0
| **Date:** 2026-09-07

| **Compilation flags:**
|    ``static, context_switching_calls``


| **Implements:**
|    ``public`` :ref:`text_vectorizer_protocol <text_vectorizer_protocol/0>`
| **Imports:**
|    ``public`` :ref:`options <options/0>`
| **Uses:**
|    :ref:`list <list/0>`
|    :ref:`type <type/0>`

| **Remarks:**
|    (none)

| **Inherited public predicates:**
|     :ref:`options_protocol/0::check_option/1`  :ref:`options_protocol/0::check_options/1`  :ref:`text_vectorizer_protocol/0::check_vectorizer/1`  :ref:`options_protocol/0::default_option/1`  :ref:`options_protocol/0::default_options/1`  :ref:`text_vectorizer_protocol/0::diagnostic/2`  :ref:`text_vectorizer_protocol/0::diagnostics/2`  :ref:`text_vectorizer_protocol/0::learn/2`  :ref:`text_vectorizer_protocol/0::learn/3`  :ref:`text_vectorizer_protocol/0::learn_transform/3`  :ref:`text_vectorizer_protocol/0::learn_transform/4`  :ref:`options_protocol/0::option/2`  :ref:`options_protocol/0::option/3`  :ref:`text_vectorizer_protocol/0::transform/3`  :ref:`text_vectorizer_protocol/0::transform_all/3`  :ref:`options_protocol/0::valid_option/1`  :ref:`options_protocol/0::valid_options/1`  :ref:`text_vectorizer_protocol/0::valid_vectorizer/1`  :ref:`text_vectorizer_protocol/0::vectorizer_options/2`  :ref:`text_vectorizer_protocol/0::vocabulary/2`  

.. contents::
   :local:
   :backlinks: top

Public predicates
-----------------

(no local declarations; see entity ancestors if any)

Protected predicates
--------------------

(no local declarations; see entity ancestors if any)

Private predicates
------------------

(no local declarations; see entity ancestors if any)

Operators
---------

(none)

.. seealso::

   :ref:`text_vectorizer_protocol <text_vectorizer_protocol/0>`

