elfen: A Python Package for Efficient Linguistic Feature Extraction for Natural Language Datasets

Read full text
Authors: Maximilian Maurer
Cited by: 1

Abstract

A detailed understanding of the basic properties of text collections produced by humans or generated synthetically is vital for all steps of the natural language processing system life cycle, from training to evaluating model performance and synthetic texts.To facilitate the analysis of these properties, we introduce elfen, a Python library for efficient linguistic feature extraction for text datasets.It includes the largest set of item-level linguistic features in eleven feature areas: surface-level, POS, lexical richness, readability, named entity, semantic, information-theoretic, emotion, psycholinguistic, dependency, and morphological features.Building on top of popular NLP and modern dataframe libraries, elfen enables feature extraction in various languages (80 at the moment) on thousands of items, even given limited computing resources 1 .We show how using elfen enables linguistically informed data selection, outlier detection, and text collection comparison.We release elfen as an open-source PyPI package, accompanied by extensive documentation, including tutorials 2 .

Fields of Study & Subjects

Natural Language Processing Techniques Topic Modeling Computational Physics and Python Applications

Publication details

Journal / source
Proceedings of the 19th Conference of the European Chapter of the Association for Computational Linguistics (Volume 3: System Demonstrations)
Publisher
Association for Computational Linguistics
Pages
61–74
Publication date
1 January 2026