No project description provided
Project description
Schnitsum: Easy to use neural network based summarization models
This package enables to generate summaries of you documents of interests.
Currently, we support following models,
- BART (large) fine-tuned on computer science papers (ref. SciTLDR).
- Model name:
sobamchan/bart-large-scitldr
- Model name:
- BART (large) fine-tuned on computer science papers (ref. SciTLDR). Then distilled (by
shrink and fine-tune
) to have 65% parameters less.- Model name:
sobamchan/bart-large-scitldr-distilled-3-3
- Model name:
- BART (large) fine-tuned on computer science papers (ref. SciTLDR). Then distilled (by
shrink and fine-tune
) to have 37% parameters less.- Model name:
sobamchan/bart-large-scitldr-distilled-12-3
- Model name:
we are planning to expand coverage soon to other sizes, domains, languages, models soon.
Installation
pip install schnitsum # or poetry add schnitsum
This will let you generate summaries with CPUs only, if you want to utilize your GPUs, please follow the instruction by PyTorch, here.
Usage
from schnitsum import SchnitSum
model = SchnitSum("sobamchan/bart-large-scitldr-distilled-3-3")
docs = [
"Document you want to summarize."
]
summaries = model(docs)
print(summaries)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
schnitsum-0.3.0.tar.gz
(6.5 kB
view hashes)
Built Distribution
Close
Hashes for schnitsum-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b73a7e92d1836e14eaab18600076f7780f15954d1e291e223c32f819c4bf0352 |
|
MD5 | 92e39648a0a11477838da947538e2984 |
|
BLAKE2b-256 | daf2c753e0561dfb2960cb20a4e74962cf6dbff057e56a56fd1878246120253e |