Skip to content

[Docs] Improve Vietnamese language support — syllable tokenization and financial NLP notes #14059

Open

Description

@Dennis-nham

Documentation Enhancement: Vietnamese Language Support

Reporter: NHAM QUOC HUAN · NLP Labs Vietnam


Current State

The spaCy vi (Vietnamese) language support exists but lacks practical documentation for:

  1. Vietnamese syllable vs. word-level tokenization nuances
  2. Domain adaptation for financial/energy text
  3. Integration with PhoBERT and other popular Vietnamese models

Problem Details

Vietnamese tokenization has unique challenges not covered in current docs:

import spacy
nlp = spacy.blank("vi")

# Issue: "điện mặt trời" (solar energy) is 3 syllables but 1 compound word
# Default whitespace tokenizer treats each syllable separately
doc = nlp("hệ thống điện mặt trời áp mái")
# Tokens: ["hệ", "thống", "điện", "mặt", "trời", "áp", "mái"]
# Expected: ["hệ thống", "điện mặt trời", "áp mái"]

For financial NLP (our primary use case), this affects:

  • Named entity recognition (company names, tickers like "VNM", "HPG")
  • Sentiment analysis accuracy
  • Dependency parsing of financial clauses

Proposed Documentation Addition

We would like to contribute:

  1. A note in the Vietnamese language docs about pre-tokenization with underthesea/VnCoreNLP
  2. A working example for Vietnamese financial NLP pipeline with spaCy
  3. Notes on integrating PhoBERT embeddings as spaCy vectors

We are ready to open a PR with these documentation improvements.

Organization: github.com/nlp-labs-vietnam
Use case: Vietnamese financial NLP pipeline for investment platform

Activity

  1. pardhusriparupudi commented on Nov 22, 2026

    @pardhusriparupudi

    Hi! I'd be interested in contributing to this documentation improvement, particularly the Vietnamese tokenization and spaCy integration examples.
    I noticed that the issue proposes several additions. Are these improvements still available for contribution, or is a PR already being prepared?
    I'd be happy to work on a clearly scoped part of the documentation after confirming the intended approach.
    Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions