Arxiv-summarizer

Latest version: v0.1.1

Safety actively analyzes 623219 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.1.1

We are releasing the very first version of Arxiv Summarizer, with 2 functions, summarizer and fetch_paper that will allow users to fetch and summarize papers published on arxiv with the help of transformers available on Huggingface.

These are the only functions that are implemented as of right now.
from arxiv_summarizer.fetch_paper import fetch_paper, ArxivPaper
from arxiv_summarizer import ArxivSummarizer

Usage of fetch_paper function
Get the list of papers
papers = fetch_paper("Yoshua Bengio", max_docs=15)
results : List[ArxivPaper] = [paper for paper in papers]


Usage of ArxivSummarizer class
Initialize ArxivSummarizer with default models
summarizer = ArxivSummarizer()

Generate a summary
summary = summarizer(arxiv_id="1234.5678")
print(summary)

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.