Having fun with language processing
Installation
pip install funlp
you may want to checkout the version
funlp version
Haha, funlp is now on your environment, having fun with it, enjoy ...
Usage
TextRank4Sentence
from funlp import TextRank4Sentence
import codecs
rank4sent = TextRank4Sentence(use_w2v=False,tol=0.0001)
text = codecs.open('./datasets/input/当前中国经济实现完全数字化,小微企业的投资机会将是蓝海.txt', 'r', 'utf-8').read()
rank4sent.summarize(text, 10)
from funlp import TextRank4Words
import codecs
rank4words = TextRank4Words(tol=0.0001,window=2)
text = codecs.open('../datasets/input/当前中国经济实现完全数字化,小微企业的投资机会将是蓝海.txt', 'r', 'utf-8').read()
rank4words.summarize(text, 10)
Acknowlegements
- The project is largely based on FastTextRank
- Code implementation is inspired by Fasttext
Metadata
Release files for funlp 0.1.5
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 |
|---|---|---|---|---|
| funlp-0.1.5.tar.gz | 10.9 kB | Without provenance | Details for funlp-0.1.5.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| funlp-0.1.5-py3.7.egg | Legacy Egg format | - | - | Details for funlp-0.1.5-py3.7.egg |
| funlp-0.1.5-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for funlp-0.1.5-py2.py3-none-any.whl |
Total release size: 10.3 MB
Release files / funlp-0.1.5.tar.gz
| Download URL | funlp-0.1.5.tar.gz |
|---|---|
| Size | 10.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
97d05c64687cfcc0ee140c5d0061f5c01034ca4a9c3964e96789fad5920747a9
|
|
BLAKE2b-256 checksum How to use checksums |
5c004d62a805c0e46c4511a5a945a1645b145dc2f21d538a2d0ef746ab5f122c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9
|
Release files / funlp-0.1.5-py3.7.egg
| Download URL | funlp-0.1.5-py3.7.egg |
|---|---|
| Size | 5.2 MB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
e1c06ae57c3965a7e11fb74406507d34040e59b7b7796b9ab35c51dc35e8e22a
|
|
BLAKE2b-256 checksum How to use checksums |
6bf2a00a7add036cab102efcab9d4d825a2a0f002c96f3bd968885483e122b28
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9
|
Release files / funlp-0.1.5-py2.py3-none-any.whl
| Download URL | funlp-0.1.5-py2.py3-none-any.whl |
|---|---|
| Size | 5.2 MB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
c7e62a1bdac0d998da2338fc39241dfe6f925a0bfc3b48c868985b240dd10777
|
|
BLAKE2b-256 checksum How to use checksums |
24166b7b42c9a77f8188e904d8b2ce3b77094c2defac2209757656ab95faac76
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9
|
Security for funlp 0.1.5
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.