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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file sep_text-0.1.0.tar.gz.

File metadata

  • Download URL: sep_text-0.1.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.8.5 Windows/10

File hashes

Hashes for sep_text-0.1.0.tar.gz
Algorithm Hash digest
SHA256 802287410a42071cccfc4e88005dc05f252bdf7f26abd87f5ed3ff2de9b0a684
MD5 66170e6083ce444d993e39d93c4782b2
BLAKE2b-256 9edf09c1813405bc935f9840cfd416e3e3d91d3015e3601e92f973368a16bcd9

See more details on using hashes here.

File details

Details for the file sep_text-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: sep_text-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.8.5 Windows/10

File hashes

Hashes for sep_text-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 27e503a912d9acdd17d8112d837d0b3230ff7acbb9cbc21e34637446f58a336b
MD5 876a3a96a6984d9b87c7b49b56b84948
BLAKE2b-256 9ef7998b51b6788e5a8c8d6d125f8afc0c223dde318c801bc49de6f4b2948c90

See more details on using hashes here.

Supported by

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