← Back to Discover

Premove ITN

Premove ITN is a Python package that rewrites spoken-form transcripts as written text for English voice agents.

Libraries & SDKs

What it does

Premove ITN performs inverse text normalization on English voice-agent transcripts. It turns spoken text from automatic speech recognition into written values such as phone numbers, dates, times, amounts, email addresses, URLs, and identifiers. It uses sentence context to choose between valid interpretations. Rust generates valid written candidates. A frozen DeBERTa scorer ranks the candidates using the full sentence. An exact decoder selects compatible edits and can leave text unchanged when an edit is not justified. To use it, install the package with pip, load the model with PremoveITN.from_pretrained(), and call normalize() on a transcript. The first use downloads about 1.6 GB of model files.

Capabilities

  • The model cannot output a written form that the deterministic candidate layer did not generate.
  • The normalize_structured() method returns structured output, and the v0.3.0 package exposes immutable structured spans and an optional resolved text view.
  • Temporal values are resolved only from explicit caller-supplied context, provided through a NormalizationContext when a deterministic temporal value is required.
  • The runtime does not read the host clock or timezone.
  • Supported candidate forms include 120, 04:30, $20, [email protected], and v3.1.9.

When to use it

  • Use it when speech recognition returns spoken-form text but downstream systems expect written forms.
  • Use it when a tool needs a structured value, such as an order ID from spoken digits or an amount from spoken dollars.
  • Use it when a formatting mistake in spoken-form text could become a failed lookup or an invalid tool argument.