CiteXtract
CiteXtract - Bringing structure to the papers on ArXiv.
Getting started
In order to install CiteXtract, run the following command:
pip install citextract
Extracting references
Then, one can extract references from a text using the RefXtract model:
from citextract.models.refxtract import RefXtractor
refxtractor = RefXtractor().load()
text = """This is a test sentence.\n[1] Jacobs, K. 2019. This is a test title. In Proceedings of Some Journal."""
refs = refxtractor(text)
print(refs)
It gives the following output:
['[1] Jacobs, K. 2019. This is a test title. In Proceedings of Some Journal.']
Under the hood, a trained neural network extracts reference boundaries and extracts the references by using these boundaries.
Extracting titles
Using the found references, titles can be extracted by using the TitleXtract model:
from citextract.models.titlextract import TitleXtractor
titlextractor = TitleXtractor().load()
ref = """[1] Jacobs, K. 2019. This is a test title. In Proceedings of Some Journal."""
title = titlextractor(ref)
print(title)
It gives the following output:
'This is a test title.'
Here, a trained neural network extracts the titles from the given reference.
Converting an arXiv PDF to text
There is a utility available which takes an arXiv URL and converts it to text:
from citextract.utils.pdf import convert_pdf_url_to_text
pdf_url = 'https://arxiv.org/pdf/some_file.pdf'
text = convert_pdf_url_to_text(pdf_url)
print(text)
Metadata
Release files for citextract 0.0.4
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 | Actions |
|---|---|---|---|---|
| citextract-0.0.4.tar.gz | 8.1 kB | Without provenance | Details for citextract-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| citextract-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for citextract-0.0.4-py3-none-any.whl |
Total release size: 20.0 kB
Release files / citextract-0.0.4.tar.gz
| Download URL | citextract-0.0.4.tar.gz |
|---|---|
| Size | 8.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4959e72b34a88ad9744edbc5e266daef49dc324ff75da5703d834ca3002da0c6
|
|
BLAKE2b-256 checksum How to use checksums |
2a3c268cfb67cb6a86ed880ab0687b5ba9c84d3d9dfda9d06e5a26c42826b43c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
|
Release files / citextract-0.0.4-py3-none-any.whl
| Download URL | citextract-0.0.4-py3-none-any.whl |
|---|---|
| Size | 12.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7713eab1198908b888421265f1965c2bb95511ea3898220033c7d7d5055e3b24
|
|
BLAKE2b-256 checksum How to use checksums |
c286d983b816b5cef8622becc773fde91ba841beb46a1ff15f30e5c6057003bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
|
Security for citextract 0.0.4
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.