ParsiPy: NLP Toolkit for Historical Persian Texts in Python
Farhan Farsi, Parnian Fazel, Sepand Haghighi, Sadra Sabouri, Farzaneh Goshtasb, Nadia Hajipour, Ehsaneddin Asgari, Hossein Sameti
TL;DR
The paper tackles the lack of NLP resources for Pārsīg, a historical Persian language, by introducing ParsiPy, a Python toolkit offering tokenization, lemmatization, POS tagging, phoneme-to-transliteration, and embeddings tailored to Parsig. It demonstrates the toolkit on the Parsig Database, evaluating P2T, lemmatization, and POS tagging, and shows competitive performance with a modular, rule-based plus statistical approach suitable for low-resource settings. The work provides a pipeline API for consistent processing and transliteration between phonemic representations and Parsig script, contributing to computational philology and digital preservation of ancient texts. It also lays groundwork for extending these methods to other historical languages through open-source tooling and future Unicode standardization for Parsig scripts.
Abstract
The study of historical languages presents unique challenges due to their complex orthographic systems, fragmentary textual evidence, and the absence of standardized digital representations of text in those languages. Tackling these challenges needs special NLP digital tools to handle phonetic transcriptions and analyze ancient texts. This work introduces ParsiPy, an NLP toolkit designed to facilitate the analysis of historical Persian languages by offering modules for tokenization, lemmatization, part-of-speech tagging, phoneme-to-transliteration conversion, and word embedding. We demonstrate the utility of our toolkit through the processing of Parsig (Middle Persian) texts, highlighting its potential for expanding computational methods in the study of historical languages. Through this work, we contribute to computational philology, offering tools that can be adapted for the broader study of ancient texts and their digital preservation.
