AI Text Classification

tools/classifyAI Models

Sort text columns into your own fixed list of categories across every row.

Assigns one category label from a closed taxonomy to every row across filings, news headlines, and procurement logs. Keeps the raw source text beside typed prediction and confidence columns for review.

Use in chatPull recent SEC 8-K filings and use Classify to tag each filing by event type (M&A, guidance, leadership, buyback, regulatory) and market tone.

What AI Text Classification does

AI Text Classification turns free-form text columns, such as 8-K corporate filings, grant abstracts, product listings, or support transcripts, into constrained category enums. Because every step binds an explicit vocabulary list, downstream SQL aggregations and dashboards stay consistent.

Mostly Right runs classification inside versioned recipes, preserving the original input text, confidence scores, and lineage metadata on every published table version. Output tables are queryable via DuckDB SQL, Parquet/CSV/JSON downloads, REST API, and MCP.

Input & output example

Controlled label schemas enforce valid enum values on every row.

Raw text column

notice_idheadline
SEC-8841Q3 guidance lowered after port congestion delays
SEC-8842Board authorizes $400M share repurchase program
SEC-8843EPA issues air permit clearance for Austin fab

Classified table

notice_idcategorysentiment
SEC-8841supply_chainnegative
SEC-8842capital_returnpositive
SEC-8843regulatory_approvalpositive

How it works

  1. 1

    Define a closed label taxonomy

    Select the source text column and declare the exact allowed category values (and optional sentiment or sub-label enums) in your recipe.

  2. 2

    Classify rows with schema constraints

    The per-row classify binding evaluates each record and writes a strongly typed category column alongside the untouched raw input.

  3. 3

    Publish and query results

    Quality assertions verify valid enum coverage before publishing a live table version accessible via SQL, REST API, Parquet export, and MCP.

Try with an agent

Pre-loads Text Classification in chat

Classify 8-K corporate filings

Pull recent SEC 8-K filings and use Classify to tag each filing by event type (M&A, guidance, leadership, buyback, regulatory) and market tone.

Categorize federal grant awards

Ingest USAspending grant awards and classify project abstracts into clean energy, biotech, defense, or infrastructure.

Common use cases

  • Categorizing news, filings, or support tickets
  • Tagging procurement contracts by sector
  • Labeling sentiment or regulatory risk buckets

Details

Category
AI Models
Identifier
classify
Inputs
Text columns · JSON strings · HTML extracts
Outputs
Typed enum column · Parquet / JSON
Dataset delivery
Parquet · CSV · JSON · SQL · REST API · MCP

Frequently asked questions

How are labels constrained?

Each classify step specifies a closed label list so every row outputs a valid category you can filter and aggregate in SQL.

Does Classify preserve the raw source text?

Yes. Recipes keep the original source column beside the classified label for review.

Can Classify assign multiple output columns like category and sentiment?

Yes. Recipes can output a primary category enum alongside secondary classification fields such as sentiment or materiality on each row.

Related tools