Skip to main content

An extensive library for processing FoLiA documents. FoLiA stands for Format for Linguistic Annotation and is a very rich XML-based format used by various Natural Language Processing tools.

Project description Documentation Status Project Status: Active – The project has reached a stable, usable state and is being actively developed. Latest release in the Python Package Index

This Python module provides an extensive library for parsing, creating and otherwise processing documents in the Format for Linguistic Annotation, aka FoLiA. It has been in active development since 2010 and used by numerous Natural Language Processing (NLP) tools.

This library used to be part of PyNLPL (pynlpl.formats.folia), but has been migrated to this standalone library in spring 2019.


FoLiA development is funded in the scope of the larger CLARIN-NL project and its successor CLARIAH.

The following modules are available:

  • folia.main - The main library
  • folia.setdefinition - A module for FoLiA Set Definitions
  • folia.fql - Support for the FoLiA Query Language (FQL)


Download and install the latest stable version directly from the Python Package Index with pip install folia (or pip3 for Python 3.7+ on most systems). For global installations prepend sudo.

Alternatively, clone this repository and run python install (or python3 install for Python 3 on most system. Prepend sudo for global installations.

The Python FoLiA library is also included in our LaMachine distribution.


API Documentation and tutorials can be found here .

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

FoLiA-2.5.8.tar.gz (198.1 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page