underthesea
π An Agentic AI Toolkit.
Automatically checked Β· GitHub checked 2026-11-24

Overview
Open-source Agentic AI Toolkit
Underthesea is:
π An Agentic AI Toolkit. Since v9.3.0, Underthesea is an open-source Agentic AI Toolkit with built-in Vietnamese NLP capabilities. It provides multi-provider AI Agent support and a suite of Python modules for Vietnamese Natural Language Processing.
π Support Us! Every bit of support helps us achieve our goals. Thank you so much. πππ
Agent
Multi-provider AI Agent with zero external dependencies. Communicates with LLM APIs using only Python stdlib (urllib + json) β no openai, anthropic, or google-genai packages required.
Providers: OpenAI | Azure OpenAI | Anthropic Claude | Google Gemini
Vietnamese NLP
See full documentation at NLP.md.
| Pipeline | Usage |
|---|---|
| Sentence Segmentation | sent_tokenize(text) |
| Text Normalization | text_normalize(text) |
| Diacritics Restoration | restore_diacritics(text) |
| Word Segmentation | word_tokenize(text) |
| POS Tagging | pos_tag(text) |
| Chunking | chunk(text) |
| Named Entity Recognition | ner(text) |
| Text Classification | classify(text) |
| Sentiment Analysis | sentiment(text) |
| Language Detection | lang_detect(text) |
| Dependency Parsing | dependency_parse(text) |
| Translation | translate(text) |
| Text-to-Speech | tts(text) |
from underthesea import word_tokenize, ner, sentiment
word_tokenize("ChΓ ng trai 9X QuαΊ£ng Trα» khα»i nghiα»p tα»« nαΊ₯m sΓ²")
# ["ChΓ ng trai", "9X", "QuαΊ£ng Trα»", "khα»i nghiα»p", "tα»«", "nαΊ₯m", "sΓ²"]
ner("ChΖ°a tiαΊΏt lα» lα»ch trΓ¬nh tα»i Viα»t Nam cα»§a Tα»ng thα»ng Mα»Ή Donald Trump")
# [... ('Viα»t Nam', 'Np', 'B-NP', 'B-LOC'), ... ('Donald', 'Np', 'B-NP', 'B-PER'), ('Trump', 'Np', 'B-NP', 'I-PER')]
sentiment("SαΊ£n phαΊ©m hΖ‘i nhα» nhΖ°ng chαΊ₯t lượng tα»t, ΔΓ³ng gΓ³i cαΊ©n thαΊn.")
# 'positive'
Contributing
Do you want to contribute with underthesea development? Great! Please read more details at Contributing Guide
π Support Us
If you found this project helpful and would like to support our work, you can just buy us a coffee β.
Your support is our biggest encouragement π!
