LexRank Summarizer
This is a CLI tool that uses LexRank to translate sentences in 3 lines.
Usage
Docker
$ docker run --rm s2terminal/lex-rank-summarizer \
'メロスは激怒した。必ず、かの邪智暴虐の王を除かなければならぬ と決意した。メロスには政治がわからぬ。メロスは、村の牧人である。笛を吹き、羊と遊んで暮して来た。けれども邪悪に対しては、人一倍に敏感であっ た。きょう未明メロスは村を出発し、野を越え山越え、十里はなれた此のシラクスの市にやって来た。メロスには父も、母も無い。女房も無い。十六の、 内気な妹と二人暮しだ。この妹は、村の或る律気な一牧人を、近々、花婿として迎える事になっていた。結婚式も間近かなのである。メロスは、それゆえ 、花嫁の衣裳やら祝宴の御馳走やらを買いに、はるばる市にやって来たのだ。先ず、その品々を買い集め、それから都の大路をぶらぶら歩いた。'
メロスは激怒した。
メロスは、村の牧人である。
きょう未明メロスは村を出発し、野を越え山越え、十里はなれた此のシラクスの市にやって来た。
Python
$ pip install s2terminal-lex-rank-summarizer
$ lex-rank-summarizer \
'メロスは激怒した。必ず、かの邪智暴虐の王を除かなければならぬ と決意した。メロスには政治がわからぬ。メロスは、村の牧人である。笛を吹き、羊と遊んで暮して来た。けれども邪悪に対しては、人一倍に敏感であっ た。きょう未明メロスは村を出発し、野を越え山越え、十里はなれた此のシラクスの市にやって来た。メロスには父も、母も無い。女房も無い。十六の、 内気な妹と二人暮しだ。この妹は、村の或る律気な一牧人を、近々、花婿として迎える事になっていた。結婚式も間近かなのである。メロスは、それゆえ 、花嫁の衣裳やら祝宴の御馳走やらを買いに、はるばる市にやって来たのだ。先ず、その品々を買い集め、それから都の大路をぶらぶら歩いた。'
Development
$ docker-compose up
and use VS Code Remote Container
$ docker-compose exec app poetry run lex-rank-summarizer 'おはよう。こんにちは。こんばんは。'
Testing
$ docker-compose exec app poetry run pytest
License
References
Metadata
Release files for s2terminal-lex-rank-summarizer 0.1.2
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 |
|---|---|---|---|---|
| s2terminal-lex-rank-summarizer-0.1.2.tar.gz | 4.4 kB | Without provenance | Details for s2terminal-lex-rank-summarizer-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| s2terminal_lex_rank_summarizer-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for s2terminal_lex_rank_summarizer-0.1.2-py3-none-any.whl |
Total release size: 9.4 kB
Release files / s2terminal-lex-rank-summarizer-0.1.2.tar.gz
| Download URL | s2terminal-lex-rank-summarizer-0.1.2.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
72bfedde473e71d1ad88ce720f96488368179a9b7e1bbbdddfe4932ba8d012d2
|
|
BLAKE2b-256 checksum How to use checksums |
1c2fea7bbb16bcc500e0be209471595a25ed87592f86dd7de7cbd46d6e27a360
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.7 CPython/3.9.5 Linux/5.4.99-12983-g8b7876ab9f5e
|
Release files / s2terminal_lex_rank_summarizer-0.1.2-py3-none-any.whl
| Download URL | s2terminal_lex_rank_summarizer-0.1.2-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fd7fe652c412a8ba4d8dcf22fb717a5cfc497e12cc8695ba14638eddf9b8fbf7
|
|
BLAKE2b-256 checksum How to use checksums |
53df3f6676b6a2e2fb4e90946dec3336eb52d1de03b231b98bcfb30f004326fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.7 CPython/3.9.5 Linux/5.4.99-12983-g8b7876ab9f5e
|
Security for s2terminal-lex-rank-summarizer 0.1.2
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.