GlossAPI
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).
Metadata
Release files for glossapi 0.0.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| glossapi-0.0.13.tar.gz | 280.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| glossapi-0.0.13-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 561.4 kB
Release files / glossapi-0.0.13.tar.gz
| Download URL | glossapi-0.0.13.tar.gz |
|---|---|
| Size | 280.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3f0144b73fab34bde8ea681b6f570992bd77096f6182748f947f14b970c393b8
|
|
BLAKE2b-256 checksum How to use checksums |
73e73656fc3852f84400041f1b13443b2f2cab3e31209e3e50807c2ba96c7093
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Release files / glossapi-0.0.13-py3-none-any.whl
| Download URL | glossapi-0.0.13-py3-none-any.whl |
|---|---|
| Size | 281.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6c191aa85f36c7e6a633c31c2c9302c540ce41d8a5dc8089040e31ea08b1f26f
|
|
BLAKE2b-256 checksum How to use checksums |
7029cfcac52d826ed21a41fbfe75d2cb66d052476fe619b0bff4d958741992d1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Security for glossapi 0.0.13
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.