arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.04583cs.CL
收藏

TajikNLP:一个用于塔吉克语(西里尔字母)综合文本处理的开源工具包

TajikNLP: An Open-Source Toolkit for Comprehensive Text Processing of Tajik (Cyrillic Script)

Institute of Computational Mathematics and Information Technologies(计算数学与信息科技研究所);Kazan Federal University(喀山联邦大学);Bokhtar State University named after Nosiri Khusrav(诺西拉夫命名的博克塔尔州大学)

Mullosharif K. Arabov, Karomatullo Habibullozoda, Nurali Shirinov

AI总结:

本文介绍 TajikNLP,一个开源的 Python 库,提供首个完整的塔吉克语文本处理流水线,包括清洗、分词、词性标注、词干提取、词形还原等,并发布四个语言数据集,以促进低资源西里尔字母语言的 NLP 研究。

摘要:

塔吉克语使用西里尔字母书写,在公开可用的自然语言处理工具包方面仍然严重资源不足,这阻碍了语言学研究和应用开发。本文介绍了 TajikNLP,一个开源的 Python 库,它提供了首个完整的流水线来处理真实的塔吉克语文本,同时保留原始西里尔字母正字法。该库实现了以统一 Doc 对象为中心的模块化架构,支持顺序应用组件进行清洗、规范化、分词(包括子词 BPE)、词素切分、词性标注、词干提取、词形还原和句子分割。引入了一个新颖的统一形态引擎,提供受控和深度分析模式,显著改进了对塔吉克语黏着性名词和动词屈折变化的处理。该发布版还包含一个基于词典的情感分析器和直接从 Hugging Face Hub 加载的预训练 Word2Vec/FastText 嵌入。为确保可重复性并促进未来研究,四个配套的语言数据集——一个词性标注语料库(52.5k 条目)、一个情感词典(3.5k 条目)、一个地名辞典(5.6k 条目)和一个个人姓名数据集(3.8k 条目)——已在宽松许可下公开发布。该库的可靠性通过包含 616 个自动化测试的广泛测试套件验证,实现了 93% 的源代码覆盖率。因此,TajikNLP 为塔吉克语处理建立了基础技术基础设施,降低了在低资源西里尔字母环境中学术和工业应用的门槛。

英文摘要:

The Tajik language, written in Cyrillic script, remains severely under-resourced in terms of publicly available natural language processing (NLP) toolkits, hindering both linguistic research and applied development. This paper introduces TajikNLP, an open-source Python library that provides the first comprehensive pipeline for processing authentic Tajik text while preserving the original Cyrillic orthography. The library implements a modular architecture centered around a unified Doc object, enabling sequential application of components for cleaning, normalization, tokenization (including subword BPE), morphemic segmentation, part-of-speech tagging, stemming, lemmatization, and sentence splitting. A novel unified morphology engine is introduced, offering controlled and deep analysis modes that significantly improve handling of Tajik's agglutinative nominal and verbal inflections. The release further incorporates a lexicon-based sentiment analyser and pre-trained Word2Vec/FastText embeddings loaded directly from the Hugging Face Hub. To ensure reproducibility and facilitate future research, four accompanying linguistic datasets -- a POS-tagged corpus (52.5k entries), a sentiment lexicon (3.5k entries), a toponym gazetteer (5.6k entries), and a personal names dataset (3.8k entries) -- have been openly published under permissive licenses. The library's reliability is validated by an extensive test suite of 616 automated tests achieving 93% source code coverage. TajikNLP thus establishes a foundational technological infrastructure for Tajik language processing, lowering the barrier to entry for both academic and industrial applications in low-resource Cyrillic-script environments.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑