Skip to main content

A library for processing academic texts in Greek and other languages

Project description

GlossAPI

Release Version PyPI Status

A library for processing academic texts in Greek and other languages, developed by ΕΕΛΛΑΚ.

Features

  • Document Processing: Extract text content from academic PDFs, DOCX, XML, HTML, and other formats with structure preservation
  • Robust Batch Processing: Process documents in batches with error isolation and automatic resumption
  • Quality Control: Filter and cluster documents based on extraction quality
  • Section Extraction: Identify and extract academic sections from documents
  • Section Classification: Classify sections using machine learning models
  • Greek Language Support: Specialized processing for Greek academic texts
  • Metadata Handling: Process academic texts with accompanying metadata
  • Customizable Annotation: Map section titles to standardized categories

Installation

pip install glossapi==0.0.9

Usage

The recommended way to use GlossAPI is through the Corpus class, which provides a complete pipeline for processing academic documents:

from glossapi import Corpus
import logging

# Configure logging (optional)
logging.basicConfig(level=logging.INFO)

# Initialize Corpus with input and output directories
corpus = Corpus(
    input_dir="/path/to/documents",
    output_dir="/path/to/output"
    # metadata_path="/path/to/metadata.parquet",  # Optional
    # annotation_mapping={
    #     'Κεφάλαιο': 'chapter',
    #     # Add more mappings as needed
    # }
)

# Step 1: Extract documents (quality control)
corpus.extract()

# Step 2: Extract sections from filtered documents
corpus.section()

# Step 3: Classify and annotate sections
corpus.annotate()

License

This project is licensed under the European Union Public Licence 1.2 (EUPL 1.2).

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

glossapi-0.0.10.tar.gz (277.3 kB view details)

Uploaded Source

Built Distribution

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

glossapi-0.0.10-py3-none-any.whl (278.6 kB view details)

Uploaded Python 3

File details

Details for the file glossapi-0.0.10.tar.gz.

File metadata

  • Download URL: glossapi-0.0.10.tar.gz
  • Upload date:
  • Size: 277.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for glossapi-0.0.10.tar.gz
Algorithm Hash digest
SHA256 3092ddd908d1d33b79e98f6ef4aef5a1659caee11ccffb52f2538613b9523c5a
MD5 73d17e24c97efead1ed27b41454665a4
BLAKE2b-256 7c18e455caeb4d02026722d25d6e216406770b29c6769b6fe88f03f6b5a53c3d

See more details on using hashes here.

File details

Details for the file glossapi-0.0.10-py3-none-any.whl.

File metadata

  • Download URL: glossapi-0.0.10-py3-none-any.whl
  • Upload date:
  • Size: 278.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for glossapi-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 f3252fac0dc3dd9f1159d16c9dc95c4f0c878aba268e9d8ff6a2720917d7a5a9
MD5 e80a5c72ef4c3a73e0cfc8756e2ec934
BLAKE2b-256 743423593be7be85e7ce8ab1e6de125a22e22be2a75dfc18bdc4a176415e5e48

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