underthesea

🌊 An Agentic AI Toolkit.

Automatically checked Β· GitHub checked 2026-11-24

underthesea

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.

PipelineUsage
Sentence Segmentationsent_tokenize(text)
Text Normalizationtext_normalize(text)
Diacritics Restorationrestore_diacritics(text)
Word Segmentationword_tokenize(text)
POS Taggingpos_tag(text)
Chunkingchunk(text)
Named Entity Recognitionner(text)
Text Classificationclassify(text)
Sentiment Analysissentiment(text)
Language Detectionlang_detect(text)
Dependency Parsingdependency_parse(text)
Translationtranslate(text)
Text-to-Speechtts(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 🎁!

Read the full README β†—