Parsing and Knowledge Modeling for Multi-Source Person Entity Information

    This article presents a practical engineering approach to structuring person-centric information from unstructured biographies. It explains why such data is difficult to normalize, then walks through a six-layer pipeline covering collection, text understanding, entity alignment, attribute normalization, quality evaluation, and storage and serving. Key techniques include dual-channel named entity recognition, alias clustering for cross-language disambiguation, mutual-exclusion checks on single-valued attributes, provenance tracking, and graph-based storage with retrieval interfaces. Readers will learn how to build stable, auditable knowledge assets from incomplete and inconsistently phrased real-world data.

    1. Why Person Information Is Hard to Structure

    The source material is a typical short biography: a male actor and singer born in Thailand on June 13, 2004, nicknamed Gemini, studying at Chulalongkorn University, with the name Norawit Titicharoenrak. The text looks simple, but engineering it exposes several difficulties.

    The first is multilingual and transliteration variance. The same entity appears as Latin transliteration, Chinese transliteration, and local script across different language contexts. Without an alias system, retrieval and aggregation fragment badly.

    The second is mixed attribute types. The biography contains time (birth date), space (birthplace), roles (actor, singer), education (school), and aliases (nickname) at the same time. These heterogeneous attributes require different extraction strategies and validation rules.

    The third is uneven trustworthiness. Public biographies usually carry no source attribution, and different channels may describe the same attribute inconsistently, so confidence scores and source weighting are necessary.

    2. Overall Pipeline Design

    A robust person information parsing system typically has six layers:

    1. Collection and cleaning: unify encoding, remove noise, retain source metadata;
    2. Text understanding: tokenization, named entity recognition, relation extraction;
    3. Entity alignment: alias merging and cross-language disambiguation;
    4. Attribute normalization: map time, location, and occupation to controlled vocabularies;
    5. Quality evaluation: conflict detection and confidence scoring;
    6. Storage and serving: graph storage, retrieval interfaces, incremental updates.

    Layers exchange data through standardized event objects to avoid tight coupling.

    1. @dataclass
    2. class EntityMention:
    3. text: str
    4. type: str # PERSON / DATE / LOCATION / ROLE / ORG
    5. offset: tuple
    6. confidence: float
    7. @dataclass
    8. class PersonProfile:
    9. canonical_id: str
    10. aliases: list
    11. attributes: dict # {"birth_date": "2004-06-13", ...}
    12. provenance: list

    3. Named Entity Recognition and Relation Extraction

    For a short biography, entity types fall into five coarse categories: person, time, location, role or occupation, and organization. A dual-channel strategy of “rules as fallback plus model generalization” is recommended: rules handle strong patterns such as dates, parenthetical notes, and Chinese-English pairs, while the model handles open-ended descriptions.

    Relation extraction focuses on three predicate groups: birth date, birthplace, school attended, and occupational identity. An example:

    1. (Norawit Titicharoenrak, birth_date, 2004-06-13)
    2. (Norawit Titicharoenrak, birthplace, Thailand)
    3. (Norawit Titicharoenrak, occupation, [actor, singer])
    4. (Norawit Titicharoenrak, school, Chulalongkorn University)
    5. (Norawit Titicharoenrak, alias, Gemini)

    Note that “nickname” and “stage name” are not fully equivalent semantically. Modeling should preserve the original expression and attach an attribute label to avoid semantic loss.

    4. Cross-Language Entity Alignment and Disambiguation

    Alignment centers on building an alias cluster. Three recall paths are common in practice: literal similarity (edit distance, character n-grams), transliteration similarity (mapping between Latin transliteration and local script), and context similarity (co-occurring attributes such as birth date and school).

    1. def alias_score(a, b):
    2. return 0.4 * literal_sim(a, b) + 0.3 * translit_sim(a, b) + 0.3 * context_sim(a, b)
    3. # Merge only when the combined score exceeds the threshold and key attributes do not conflict
    4. if alias_score(a, b) > 0.82 and not conflict(a, b):
    5. merge(a, b)

    The key constraint for disambiguation is mutual-exclusion validation of attributes. If single-valued attributes such as birth date or birthplace conflict, reject the merge and send the case to a manual review queue instead of forcing it.

    5. Attribute Normalization and Quality Control

    Normalize time to ISO 8601, map locations to standard administrative division codes, and route occupations and organizations through controlled vocabularies. Quality evaluation should output three dimensions: extraction confidence, source authority, and multi-source agreement, combined with weights into a final trust score.

    Conflict handling strategies include overriding with the latest update, preferring higher-authority sources, and keeping multiple values flagged as disputed. Every attribute must carry provenance to support traceback and correction.

    6. Storage, Retrieval, and Engineering Notes

    Graph storage naturally fits the “entity-relation-attribute” model and supports multi-hop queries; if retrieval is mostly keyword based, an inverted index can complement it. The serving layer should offer three capabilities: exact retrieval, fuzzy and alias retrieval, and structured conditional filtering.

    Engineering also requires attention to incremental updates and idempotent writes, rate limiting during bulk backfills, minimizing retention of sensitive information, and accuracy regression driven by evaluation sets. Deployment and operations can build on general capabilities such as object storage, message queues, container platforms, and log monitoring from Baidu AI Cloud, making parsing tasks observable and elastically scalable.

    7. Summary

    Structuring short biographies is not simple field filling but a system engineering effort of “extract-align-normalize-evaluate-serve.” Mastering three essentials—alias cluster construction, attribute mutual-exclusion validation, and source traceability—yields stable, usable knowledge assets even on real data that is incomplete and inconsistently phrased.