Skip to main content

OAPapersLoader

This repository contains python loaders for OAPapers corpus and derived datasets. It accompanies the repository https://github.com/KNOT-FIT-BUT/OAPapers and provides more lightweight solution without exhaustive dependencies to load the OAPapers corpus and derived datasets.

Install

pip install oapaersloader

Usage

An example of loading OARelatedWork dataset with references:

from oapapersloader.datasets import OARelatedWork, OADataset

with OARelatedWork("train.jsonl", "train.jsonl.index") as dataset, \
            OADataset("references.jsonl", "references.jsonl.index") as references:
    d = dataset[0]
    print("Document:", dataset[0].title)
    print("Cited paper:", references.get_by_id(d.citations[0]).title)

The OARelatedWork will load the target papers with related work sections and the OADataset will load dataset of all references that can be used for loading cited papers.

Metadata

Release files for oapapersloader 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for oapapersloader 1.0.1
File Size Uploaded Provenance Actions
oapapersloader-1.0.1.tar.gz 18.4 kB Without provenance Details for oapapersloader-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for oapapersloader 1.0.1
File Interpreter ABI Platform Actions
oapapersloader-1.0.1-py3-none-any.whl Python 3 none any Details for oapapersloader-1.0.1-py3-none-any.whl

Total release size: 34.3 kB

Release files / oapapersloader-1.0.1.tar.gz

Download URL oapapersloader-1.0.1.tar.gz
Size 18.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ed6d9b07590c0db010909362873ca5b1a2cb383ef5d7bd0fc8e11c80f32a95e8
BLAKE2b-256 checksum
How to use checksums
f9f58acd472a97de80ba8c17413a1f865a409ad78754923c90def6597da07dc3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.14

Release files / oapapersloader-1.0.1-py3-none-any.whl

Download URL oapapersloader-1.0.1-py3-none-any.whl
Size 16.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5ddc48e901e497ce5ea013f6ea52efb7c31f17ea45d0a4e1114ad2d3c9d400d9
BLAKE2b-256 checksum
How to use checksums
ff66095e216b779364c0512279fdf387d7aaff72f9395b9abae2a969c0e02724
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.14

Security for oapapersloader 1.0.1

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.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page