Skip to main content

Having fun with language processing 🐳

Project description

Having fun with language processing

Version License pypi downloads GitHub last commit Stars

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

funlp-0.1.5.tar.gz (10.9 kB view hashes)

Uploaded Source

Built Distributions

funlp-0.1.5-py3.7.egg (5.2 MB view hashes)

Uploaded Source

funlp-0.1.5-py2.py3-none-any.whl (5.2 MB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page