Skip to main content

ELFEN - Efficient Linguistic Feature Extraction for Natural Language Datasets

Project description

ELFEN - Efficient Linguistic Feature Extraction for Natural Language Datasets

This python package provides efficient linguistic feature extraction for text datasets (i.e. datasets with N text instances, in a tabular structure).

For further information, check the GitHub repository and the documentation

Using spacy models

If you want to use the spacy backbone, you will need to download the respective model, e.g. "en_core_web_sm":

python -m spacy download en_core_web_sm

Usage of third-party resources usable in this package

The extraction of psycholinguistic, emotion/lexicon and semantic features relies on third-party resources such as lexicons. Please refer to the original author's licenses and conditions for usage, and cite them if you use the resources through this package in your analyses.

For an overview which features use which resource, and how to export all third-party resource references in a bibtex string, consult the documentation.

Multiprocessing and limiting the numbers of cores used

The underlying dataframe library, polars, uses all available cores by default. If you are working on a shared server, you may want to consider limiting the resources available to polars. To do that, you will have to set the POLARS_MAX_THREADS variable in your shell, e.g.:

export POLARS_MAX_THREADS=8

Acknowledgements

While all feature extraction functions in this package are written from scratch, the choice of features in the readability and lexical richness feature areas (partially) follows the readability and lexicalrichness python packages.

We use the wn python package to extract Open Multilingual Wordnet synsets.

Citation

If you use this package in your work, for now, please cite

@misc{maurer-2025-elfen,
  author = {Maurer, Maximilian},
  title = {ELFEN - Efficient Linguistic Feature Extraction for Natural Language Datasets},
  year = {2025},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{https://github.com/mmmaurer/elfen}},
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

elfen-1.1.6.tar.gz (47.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

elfen-1.1.6-py3-none-any.whl (52.8 kB view details)

Uploaded Python 3

File details

Details for the file elfen-1.1.6.tar.gz.

File metadata

  • Download URL: elfen-1.1.6.tar.gz
  • Upload date:
  • Size: 47.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for elfen-1.1.6.tar.gz
Algorithm Hash digest
SHA256 2cd94739e6d995060e07e73be700bc567acc06b65ecc9fe66c7229900d2e24e8
MD5 b64323786ace89116b1f2db841781e5f
BLAKE2b-256 1ffdc26c849c54db6933b522e8debb45d422dbb2eb069351f5f45548d43545bd

See more details on using hashes here.

File details

Details for the file elfen-1.1.6-py3-none-any.whl.

File metadata

  • Download URL: elfen-1.1.6-py3-none-any.whl
  • Upload date:
  • Size: 52.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for elfen-1.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 172461d9a9b739bc6a5022e5bcb8ea502d51fc0544d0bb3da2c587498e25f216
MD5 a5a6e36213b575b9996a8192b5d4f70a
BLAKE2b-256 3c51211de10ffead234264dc2b92e81702b2f3340ffe2b2a6e0f74bab136bd6d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page