惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Cisco Talos Blog
Cisco Talos Blog
Martin Fowler
Martin Fowler
A
About on SuperTechFans
H
Help Net Security
F
Full Disclosure
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
IT之家
IT之家
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
阮一峰的网络日志
阮一峰的网络日志
WordPress大学
WordPress大学
H
Heimdal Security Blog
博客园_首页
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
T
Tailwind CSS Blog
Recent Announcements
Recent Announcements
B
Blog RSS Feed
Last Week in AI
Last Week in AI
V2EX - 技术
V2EX - 技术
The Register - Security
The Register - Security
Security Archives - TechRepublic
Security Archives - TechRepublic
G
GRAHAM CLULEY
美团技术团队
S
Securelist
MyScale Blog
MyScale Blog
Vercel News
Vercel News
L
LINUX DO - 最新话题
Hacker News: Ask HN
Hacker News: Ask HN
W
WeLiveSecurity
M
MIT News - Artificial intelligence
宝玉的分享
宝玉的分享
月光博客
月光博客
Attack and Defense Labs
Attack and Defense Labs
大猫的无限游戏
大猫的无限游戏
博客园 - Franky
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Microsoft Security Blog
Microsoft Security Blog
I
InfoQ
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Forbes - Security
Forbes - Security
罗磊的独立博客
O
OpenAI News
AI
AI
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
雷峰网
雷峰网
S
Security @ Cisco Blogs
MongoDB | Blog
MongoDB | Blog
Schneier on Security
Schneier on Security
P
Proofpoint News Feed
Webroot Blog
Webroot Blog
V
Visual Studio Blog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
Building a Financial Named Entity Recognition Pipeline for Enterprise AI
Irvan Gerhana Septiyana · 2026-06-25 · via DEV Community

Part 3 of the Building Enterprise AI Automation Systems Series


Introduction

Named Entity Recognition (NER) is one of the oldest problems in Natural Language Processing.

Most tutorials introduce NER using examples like:

  • Person
  • Organization
  • Location
  • Date

A sentence such as:

Elon Musk founded SpaceX in California.

becomes

PERSON
ORGANIZATION
LOCATION

While this is useful for learning NLP fundamentals, it has very little relevance to enterprise software.

Businesses do not automate biographies.

They automate operations.

Enterprise documents contain an entirely different language.

Invoices.

Contracts.

Purchase Orders.

Bank Statements.

Remittance Advice.

Payment Narratives.

ERP Exports.

The entities that matter inside these documents are not "PERSON" or "LOCATION".

Instead, they are business concepts such as:

  • Customer
  • Contract
  • Invoice
  • Purchase Order
  • Payment Type

Understanding these entities is the first step toward intelligent automation.

In this article, we'll build a Financial Named Entity Recognition pipeline capable of transforming raw enterprise transaction narratives into structured business knowledge.


The Difference Between Generic NER and Enterprise NER

Traditional NER focuses on linguistic entities.

Enterprise NER focuses on operational entities.

Consider the following sentence.

PART PMT ALPHABRIDGE SOLUTIONS MFG-INV-000157

A generic language model may identify:

Organization

and ignore everything else.

From a business perspective, this is almost useless.

What we actually need is:

PAYMENT_TYPE
COMPANY
INVOICE

The objective is not language understanding.

The objective is business understanding.


Step 1 — Designing the Business Taxonomy

Before training any model, define what the model should learn.

This is one of the most overlooked stages in machine learning projects.

Many teams immediately begin annotation without first defining a taxonomy.

As a result, annotations become inconsistent.

Models become confused.

Evaluation becomes unreliable.

For our transaction intelligence system, we defined the following entities:

COMPANY

INVOICE

CONTRACT

PURCHASE_ORDER

PAYMENT_TYPE

Notice that these entities correspond to business concepts rather than grammatical concepts.

Every downstream component in the pipeline depends on this taxonomy.


Step 2 — Canonical Data Before Annotation

One mistake frequently made in annotation projects is labeling raw operational files directly.

Instead, we first transformed MT950 statements into a canonical JSON structure.

Original transaction:

:61:240226C3979,85NTRFNONREF

:86:PART PMT ALPHABRIDGE SOLUTIONS MFG-INV-000157

Canonical representation:

{
    "transaction_id": "TXN-000001",
    "amount": 3979.85,
    "currency": "EUR",
    "narrative": "PART PMT ALPHABRIDGE SOLUTIONS MFG-INV-000157"
}

This separation provides several benefits.

The parser understands MT950.

The NER model understands narratives.

Neither component needs knowledge of the other.

This separation significantly improves maintainability.


Step 3 — Building an Annotation Strategy

Annotation is not simply highlighting text.

It is defining business semantics.

For example:

PART PMT ALPHABRIDGE SOLUTIONS MFG-INV-000157

becomes

PART PMT
────────
PAYMENT_TYPE

ALPHABRIDGE SOLUTIONS
────────────────────
COMPANY

MFG-INV-000157
──────────────
INVOICE

Each annotation represents an operational concept.

The objective is consistency rather than quantity.

A smaller, high-quality dataset almost always outperforms a massive inconsistent dataset.


Step 4 — Why We Built an Automatic Pre-Labeling Engine

Manual annotation is expensive.

Labeling several thousand transaction narratives can require days or even weeks.

Instead of starting from scratch, we created a rule-based pre-labeling engine.

The workflow becomes:

MT950 Narrative
        │
        ▼
Regex Rules
        │
        ▼
Master Data Lookup
        │
        ▼
Automatic Labels
        │
        ▼
Human Review

Rather than replacing human annotators, pre-labeling reduces repetitive work.

Annotators validate labels instead of creating them.

This dramatically improves annotation speed.


Step 5 — Annotation with Doccano

After pre-labeling, the dataset is imported into Doccano.

Each record already contains suggested labels.

Instead of manually searching for entities, reviewers simply verify:

  • Company names
  • Invoice numbers
  • Contract identifiers
  • Purchase orders
  • Payment types

This process improves both consistency and annotation throughput.

Doccano becomes a quality assurance tool rather than a manual labeling tool.


Step 6 — Preparing Data for Training

Machine learning models require token-level labels.

Therefore annotated spans are converted into BIO format.

Example:

PART        B-PAYMENT_TYPE
PMT         I-PAYMENT_TYPE
ALPHABRIDGE B-COMPANY
SOLUTIONS   I-COMPANY
MFG-INV-000157 B-INVOICE

BIO encoding allows transformer models to learn entity boundaries rather than isolated words.

This is particularly important for company names consisting of multiple tokens.


Step 7 — Fine-Tuning a Domain-Specific Transformer

Rather than training from scratch, we fine-tuned a pretrained language model.

The workflow becomes:

Synthetic Dataset
        │
        ▼
Doccano
        │
        ▼
BIO Conversion
        │
        ▼
Transformer Fine-Tuning
        │
        ▼
Inference

Because the model already understands language, it only needs to learn business concepts.

This dramatically reduces training requirements.


Step 8 — Evaluating Beyond Accuracy

Accuracy alone provides little insight for NER systems.

Instead, we evaluated:

Precision

How many predicted entities were correct?


Recall

How many true entities were discovered?


F1 Score

The balance between precision and recall.

We also evaluated each entity independently.

For example:

Entity             Precision    Recall    F1

COMPANY              94.2%      91.8%    93.0%

INVOICE              98.7%      97.9%    98.3%

CONTRACT             92.1%      90.5%    91.3%

PURCHASE_ORDER       95.4%      94.1%    94.7%

This provides much more actionable feedback than overall accuracy.


Step 9 — NER Is Only the Beginning

Many tutorials stop after entity extraction.

Enterprise systems cannot.

Suppose the model predicts:

COMPANY

ALPHABRIDGE

Extraction alone is insufficient.

The system must still determine:

Customer ID

CUS-00002

Similarly,

Invoice

MFG-INV-000157

must resolve to:

Contract

CNT-2024-587

This process is called Entity Resolution.

Without it, extracted entities remain isolated pieces of text.

Business understanding has not yet occurred.


Architecture Overview

The Financial NER pipeline ultimately looks like this:

Synthetic Dataset
        │
        ▼
Canonical Transformation
        │
        ▼
Pre-label Engine
        │
        ▼
Doccano Annotation
        │
        ▼
BIO Conversion
        │
        ▼
Fine-Tuned Transformer
        │
        ▼
Entity Resolution
        │
        ▼
Reconciliation Engine

Each stage has a single responsibility.

This modular architecture makes the entire system easier to extend and maintain.


Lessons Learned

The biggest lesson from this project was unexpected.

Training the transformer was not the hardest task.

Designing the taxonomy was.

Building high-quality synthetic data was.

Creating consistent annotations was.

The model simply learned from those foundations.

Enterprise AI systems rarely fail because of neural networks.

They fail because the underlying business knowledge is poorly defined.


Conclusion

Named Entity Recognition is often introduced as a natural language processing problem.

In enterprise software, it is much more than that.

NER becomes the bridge between unstructured documents and structured business intelligence.

By combining canonical data, business taxonomies, automated pre-labeling, human validation, and domain-specific transformers, organizations can build systems capable of understanding operational language at scale.

This understanding becomes the foundation for entity resolution, reconciliation, intelligent automation, and eventually autonomous enterprise operations.


Next Article

Part 4 — Why Entity Resolution Is Harder Than Named Entity Recognition

In the next article we'll explore why extracting entities is only half of the problem.

We'll design a production-grade Entity Resolution Engine capable of matching customers, invoices, contracts, and purchase orders using:

  • Exact Matching
  • Alias Matching
  • Fuzzy Matching
  • Embedding Similarity
  • Confidence Scoring
  • Hybrid Resolution Strategies

to transform extracted entities into actionable business knowledge.