Skip to main content

Separate two texts, paragraph by paragraph

Project description

sep-text

pytestpythonCode style: blackLicense: MITPyPI version

Separate two texts, paragraph by paragraph

Install it

pip install sep-text

# pip install git+https://github.com/ffreemt/sep-text
# poetry add git+https://github.com/ffreemt/sep-text
# git clone https://github.com/ffreemt/sep-text && cd sep-text

If your environment does not have a C compiler, install fasttext.whl first. You can find fasttext.whl from https://www.lfd.uci.edu/~gohlke/pythonlibs/.

Use it

from sep_text import sep_text

print(sep_text("This is a text\nMachen wir etwas"))
# ('Machen wir etwas', 'This is a text')

print(sep_text.langs)
# ['de', 'en']

print(sep_text.conf)
# [0.994, 0.004]

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

sep_text-0.1.0.tar.gz (4.3 kB view hashes)

Uploaded Source

Built Distribution

sep_text-0.1.0-py3-none-any.whl (4.3 kB view hashes)

Uploaded 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