Skip to main content

A library for processing academic texts in Greek and other languages

Project description

GlossAPI

Release Version PyPI Test Status

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

Features

  • PDF Processing: Extract text content from academic PDFs with structure preservation
  • 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 -i https://test.pypi.org/simple/ glossapi==0.0.6

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: Filter documents (quality control)
corpus.filter()

# 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.6.tar.gz (274.9 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.6-py3-none-any.whl (275.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: glossapi-0.0.6.tar.gz
  • Upload date:
  • Size: 274.9 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.6.tar.gz
Algorithm Hash digest
SHA256 37e885ff1e9339697cff6d1825a8734cadc8584c26aecf5119c4acac211aeb66
MD5 45174331e53ad04dc98ea8364286b374
BLAKE2b-256 6d5300af373e33366ce36fe9d757823f93f41caf7cc5ee7820c2c8e6b46f6f02

See more details on using hashes here.

File details

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

File metadata

  • Download URL: glossapi-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 275.1 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 d5c8869bf28382b679712f52484aba891dbb6d566e0b0956a7ac059634bfd12e
MD5 485722e0938ae34fd55ace17d4b41f4f
BLAKE2b-256 2bfa4a25f1ab56e686513163660f21e0a6e286df9ea70bcb10fa15fa18814654

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