← Latest papers
🤖 AI

Toten: Knowledge-Based Ontological Tokenization Of Physical Quantities And Technical Notation In Brazilian Portuguese

This paper introduces TOTEN, a knowledge-based ontological tokenization framework for Brazilian Portuguese that replaces statistically derived subwords with a declarative, ontology-driven approach to preserve the semantic and structural integrity of physical quantities and technical notation, demonstrating superior performance over state-of-the-art baselines in unit atomicity and numerical reconstruction.

Original authors: Antonio de Sousa Leitão Filho; Allan Kardec Duailibe Barros Filho; Fabrício Saul Lima; Selby Mykael Lima dos Santos; Rejani Bandeira Vieira Sousa

Published 2026-06-19
📖 4 min read☕ Coffee break read

Original authors: Antonio de Sousa Leitão Filho; Allan Kardec Duailibe Barros Filho; Fabrício Saul Lima; Selby Mykael Lima dos Santos; Rejani Bandeira Vieira Sousa

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to teach a computer to read a complex engineering manual written in Brazilian Portuguese. The manual is full of precise measurements like "5.2 kN/m²" (kilonewtons per square meter) or "1.5 × 10⁻³ m".

The Problem: The "Pixelated" Translator
Most modern AI models use a method called Byte-Pair Encoding (BPE) to read text. Think of this like a translator who only speaks in tiny, broken fragments. To save space, this translator chops words into arbitrary pieces based on how often they appear in general books.

  • If the text says "5.2 kN/m²", a standard BPE tokenizer might chop it into: 5, ., 2, k, N, /, m, ².
  • To the computer, "5.2 kN/m²" isn't a single concept; it's just a random pile of eight separate puzzle pieces. The computer has to guess later how to put them back together to understand that it's a specific physical force. This is like trying to understand a sentence by looking at individual pixels of the letters rather than the letters themselves.

The Solution: TOTEN (The "Smart Librarian")
The authors created a new system called TOTEN. Instead of guessing how to chop words based on statistics, TOTEN acts like a knowledge-based librarian who has a strict, formal rulebook (an "ontology") for what engineering terms actually are.

Here is how TOTEN works, using simple analogies:

  1. The Rulebook (The Ontology): Before reading a single word, TOTEN has a pre-written dictionary of engineering rules. It knows that "kN" is a unit of force, "m²" is an area, and "5.2" is a number. It doesn't guess; it knows the definitions by heart.
  2. The Three Expert Assistants (Oracles): TOTEN doesn't try to memorize every possible typo or symbol. Instead, it calls on three trusted experts for help:
    • Pint: The expert on units of measurement (knows exactly what a "kilowatt" is).
    • Unicode Database: The expert on symbols and fonts (knows that a superscript "2" is a square, not just a number).
    • RSLP: The expert on Portuguese grammar (knows that "potências" means "powers" in a technical context).
  3. The Sorting Process: When TOTEN sees the text "5.2 kN/m²", it doesn't chop it up. It looks at its rulebook and the experts, and it says: "Ah, this whole thing is one single, atomic block called 'Physical Quantity'." It wraps the whole phrase in a single, labeled tag, preserving the exact meaning.

The Results: Why It Matters
The authors tested TOTEN against eight other top-tier systems (including the standard "pixelated" translators and other number-finding tools) using a benchmark of 800 engineering cases and four other real-world Portuguese text collections.

  • Atomicity (Keeping things whole): TOTEN was perfect at keeping physical quantities as single, unbroken units. The other systems often broke them apart.
  • Reconstruction (Putting it back together): When the computer needed to extract the actual number and unit later, TOTEN could do it correctly 78% to 90% of the time. The best competing system only managed about 63% to 70%.
  • Accuracy: The difference wasn't just a little bit better; it was statistically significant. TOTEN didn't just guess; it used its rulebook to get the right answer consistently.

The Bottom Line
TOTEN proves that for technical, scientific text, you don't need to rely on "statistical guessing" (which works well for casual conversation but fails at engineering). Instead, you can use a structured, rule-based approach that treats technical terms as complete, meaningful objects.

The paper claims that this method allows computers to "see" the structure of numbers and units exactly as engineers intend, without breaking them into confusing fragments. It is a specialized tool designed specifically to make Brazilian Portuguese technical text readable for machines, ensuring that "5.2 kN/m²" is treated as a single, coherent idea rather than a jumbled mess of characters.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →