Named Entity Recognition in Vietnamese documents

Tri Tran Q., Thao Pham T. X., Hung Ngo Q., Điền Đinh, Nigel CollierProgress 2007

Abstract

Named Entity Recognition (NER) aims to classify words in a document into pre-defined target entity classes and is now considered to be fundamental for many natural language processing tasks such as information retrieval, machine translation, information extraction and question answering. This paper presents the results of an experiment in which a Support Vector Machine (SVM) based NER model is applied to the Vietnamese language. Though this state of the art machine learning method has been widely applied to NER in several well-studied languages, this is the first time this method has been applied to Vietnamese. In a comparison against Conditional Random Fields (CRFs) the SVM model was shown to outperform CRF by optimizing its feature window size, obtaining an overall F-score of 87.75. The paper also presents a detailed discussion about the characteristics of the Vietnamese language and provides an analysis of the factors which influence performance in this task.

Introduction: The Vietnamese NER Challenge

Named Entity Recognition—the task of identifying and categorizing proper nouns like people, places, and organizations—is a cornerstone of modern NLP. While well-established for languages like English or Chinese, Vietnamese presents unique linguistic hurdles that make standard "off-the-shelf" solutions perform poorly.

The authors highlight three primary challenges:

  1. Word Segmentation: Unlike English, where spaces clearly delimit words, Vietnamese is monosyllabic. Spaces exist between every syllable, but a "word" might consist of one to four syllables. Errors in identifying these boundaries cascade into errors in entity recognition.
  2. Loanwords and Transliterations: Vietnamese heavily incorporates loanwords from French and English, often using phonetic symbols or hyphens (e.g., "In-dô-nê-xi-a" for Indonesia). This leads to significant spelling variations for the same entity.
  3. Resource Scarcity: At the time of this research, Vietnamese lacked the robust lexicons, parsers, and "word nets" available for more widely studied languages.

Methodology: SVM and Feature Engineering

The researchers implemented a supervised learning approach using Support Vector Machines (SVMs), specifically utilizing the YamCha toolkit. They treated NER as a sequential labeling problem using the IOB (Inside, Outside, Beginning) notation.

To boost performance, they engineered a comprehensive feature set including surface words, orthographic features, and gazetteer lookups.

Example of feature extraction and labeling for a Vietnamese sentence.

The feature set includes:

  • Surface Words: A sliding window of the current word plus two words before and after.
  • Orthographic Features: The "secret sauce" of the model. It looks for patterns like initial capitalization (InitCap), all caps (AllCaps), presence of digits, hyphens, or specific punctuation.
  • Gazetteer Features: A dictionary-based lookup containing roughly 17,500 Vietnamese names and 7,400 locations/organizations.
  • Class History: The model dynamically considers the labels assigned to the previous three words to maintain contextual consistency.

For comparison, they also tested a Conditional Random Fields (CRF) model using the CRF++ toolkit.

Dataset and Corpus Construction

The authors built a custom gold-standard corpus because existing benchmarks were insufficient.

  • Source: 500 articles from popular Vietnamese online newspapers (VnExpress and Tuoi Tre) covering seven fields.
  • Scale: 156,031 tokens, 109,255 words, and 13,603 manually annotated named entities.
  • Annotation Process: An iterative "bootstrapping" method was used. They manually tagged 100 articles, trained an initial SVM, used it to pre-tag the next 100, and then had a human corrector fix the errors until all 500 articles were processed.

Key Results and Performance

The SVM-based approach proved superior to the CRF model in this specific linguistic context. The best SVM model achieved an overall F-score of 87.75 (Precision: 89.05%, Recall: 86.49%), outperforming the CRF model's F-score of 86.48.

Performance results of the SVM model across different entity classes.

As shown in the results table, the model was most accurate at identifying Percentages (98.80 F) and Currency (90.72 F), likely due to their highly predictable numeric patterns. Person (89.90 F) and Location (88.93 F) also showed strong results. "Organization" entities were the hardest to classify (80.93 F-score) because they tend to be significantly longer (averaging 3.97 words) than other entity types.

Discussion and Insights

  • Window Size: A window of three previous words provided the optimal balance of context; deviations from this size degraded performance.
  • The Segmentation Trap: Word segmentation errors significantly impact NER. Incorrectly segmented entities (e.g., merging a name and location) prevent the model from recognizing either.
  • Feature Synergy: The gazetteer feature only became truly effective when combined with orthographic features, suggesting the model requires structural cues to validate dictionary matches.

Conclusion

This research represents the first application of SVMs to Vietnamese NER, demonstrating that with optimized feature selection and window sizes, SVMs can outperform traditional CRF models. This work was ultimately integrated into the BioCaster project, a multi-lingual system for tracking global disease outbreaks.

Summary updated

BibTeX
@inproceedings{q2007named,
  author = {Tri Tran Q. and Thao Pham T. X. and Hung Ngo Q. and Điền Đinh and Nigel Collier},
  title = {{Named Entity Recognition in Vietnamese documents}},
  booktitle = {Progress},
  year = {2007},
  doi = {10.2201/niipi.2007.4.2},
}
Figure