Separate two texts, paragraph by paragraph
Project description
sep-text
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
Release history Release notifications | RSS feed
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)