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
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
matchingsplit-0.1.0.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for matchingsplit-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9caf47b2e878aa3b768fed855b4c9e011aa0815325ecca597009d3498ce5d859 |
|
MD5 | 9056ecca6e4edd49f5b03f0f0097e109 |
|
BLAKE2b-256 | c63035720ee555fe3625e803f3afaae6e730c44e3e7902e819db4ee45924772a |