Crates.io | rsrpp |
lib.rs | rsrpp |
version | 1.0.2 |
source | src |
created_at | 2024-11-07 13:51:38.877688 |
updated_at | 2024-11-08 12:54:46.514056 |
description | A Rust project for research paper pdf. |
homepage | |
repository | https://github.com/akitenkrad/rsrpp.git |
max_upload_size | |
id | 1439779 |
size | 64,172 |
The rsrpp
library provides a set of tools for parsing research papers.
sudo apt install poppler-utils
sudo apt install libopencv-dev clang libclang-dev
To start using the rsrpp
library, add it to your project's dependencies in the Cargo.toml
file:
cargo add rsrpp
Then, import the necessary modules in your code:
extern crate rsrpp;
use rsrpp::parser;
Here is a simple example of how to use the parser module:
let mut config = ParserConfig::new();
let url = "https://arxiv.org/pdf/1706.03762";
let pages = parse(url, &mut config).await.unwrap(); // Vec<Page>
let sections = Section::from_pages(&pages); // Vec<Section>
let json = serde_json::to_string(§ions).unwrap(); // String
The library includes a set of tests to ensure its functionality. To run the tests, use the following command:
cargo test
License: MIT
Section
module. content: String
was replaced by content: Vec<TextBlock>
.