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 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: 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.7.tar.gz (258.1 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.7-py3-none-any.whl (258.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: glossapi-0.0.7.tar.gz
  • Upload date:
  • Size: 258.1 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.7.tar.gz
Algorithm Hash digest
SHA256 5c3fd1765cd4a5301fd54adb2b0444995011ba47fa869e72daa94f5fc7eccbc4
MD5 a64a76ccdf86b8fbefce0848512cf7fc
BLAKE2b-256 ea386e85d0bfbb8be17d1def76245dacac80fb2b9c95ef4c8a2fbf0bff189546

See more details on using hashes here.

File details

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

File metadata

  • Download URL: glossapi-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 258.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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 bc7a9124fe9c18fdd696479a962b49185217adb7c41d2d14a184196862a707b1
MD5 28a9c535ae87f4884bcc017cfed404d1
BLAKE2b-256 4f975500b9d33a6c3f258e7263a62a6a472cc42b1ea0bafb0d963c4fab3b99fd

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