Rust Research Paper Parser (rsrpp)
RuSt Research Paper Parser (rsrpp)
The rsrpp library provides a set of tools for parsing research papers.
Quick Start
Pre-requirements
- Poppler:
sudo apt install poppler-utils - OpenCV:
sudo apt install libopencv-dev clang libclang-dev
Installation
To start using the rsrpp library, add it to your project's dependencies in the Cargo.toml file:
Then, import the necessary modules in your code:
extern crate rsrpp;
use parser;
Examples
Here is a simple example of how to use the parser module:
let mut config = new;
let url = "https://arxiv.org/pdf/1706.03762";
let pages = parse.await.unwrap; // Vec<Page>
let sections = from_pages; // Vec<Section>
let json = to_string.unwrap; // String
Tests
The library includes a set of tests to ensure its functionality. To run the tests, use the following command:
License: MIT
Releases
- Added verbose mode.
- Fixed a bug in the process extracting page number.
- Updated: implemented new errors to handle invalid URLs.
- Updated: The max retry time for saving PDF files has been increased.
- Fix bugs: After converting to PDF, the program now waits until processing is complete.
- Fixed bugs in
get_pdf_info. - Made minor improvements.
- Added cli -> rsrpp-cli.
- Updated the
Sectionmodule.content: Stringwas replaced bycontent: Vec<TextBlock>.