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']

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.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

matchingsplit-0.1.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: matchingsplit-0.1.0.tar.gz
  • Upload date:
  • Size: 4.6 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.0.tar.gz
Algorithm Hash digest
SHA256 4d5bbb4d7838ad5aff2ebd07f3255a2ac66f924e17aa9429aba3f0a1b5549aa0
MD5 50004d3c608cf7d4e39127f9dc6a3ea5
BLAKE2b-256 9045d287c537d4c456b00c906bf1d5f9022238006ef0131490fb3b31e86e1e29

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for matchingsplit-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9caf47b2e878aa3b768fed855b4c9e011aa0815325ecca597009d3498ce5d859
MD5 9056ecca6e4edd49f5b03f0f0097e109
BLAKE2b-256 c63035720ee555fe3625e803f3afaae6e730c44e3e7902e819db4ee45924772a

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