Skip to main content

Split a string or group a collection of words into a list by matching another list of similar words, to create accurate subtitles from the actual script and inaccurate (generated) subtitles.

Project description

matchingsplit

Split a string or group a collection of words into a list by matching another list of similar words, to create accurate subtitles from the actual script and inaccurate (generated) subtitles.

Example

from matchingsplit import split

>>> split("this must be a good thing", reference=["this", "is", "a", "good", "thing"])
['this', 'must be', 'a', 'good', 'thing']

>>> split("this is a good thing", reference=["this", "must", "be", "a", "good", "thing"])
['this', '', 'is', 'a', 'good', 'thing']

>>> split("a big foo bar", ["a", "big", "ff"])
['a', 'big', 'foo bar']

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

matchingsplit-0.1.1.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

matchingsplit-0.1.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file matchingsplit-0.1.1.tar.gz.

File metadata

  • Download URL: matchingsplit-0.1.1.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for matchingsplit-0.1.1.tar.gz
Algorithm Hash digest
SHA256 698120e2a8c2bf8c0f089d056eaad86d34cf1c1a6ddcdb014692a609f3c1e27f
MD5 b74dd60ae0e9eb41162e43bc3922a079
BLAKE2b-256 31dd5d6053cb77762e24a71b07cd0c0272096399b30a943f4e7953448599f463

See more details on using hashes here.

File details

Details for the file matchingsplit-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for matchingsplit-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2dce6505e0e946b4a6912839351dccc7c4f21da9eee9c9e8bb6c1676b311c6f6
MD5 9d2f6f83319dfe7160ec381ade3a1d14
BLAKE2b-256 596440605a4a993e57e26450b368d5a74130f02a5e5db04105e27b8335612344

See more details on using hashes here.

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