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']
>>> split("line1.\n\nline2.\nline3.", reference=["1", "2", "3"], preserve_newlines=True)
['line1.\n\n', 'line2.\n', 'line3.']
Metadata
Release files for matchingsplit 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| matchingsplit-0.1.2.tar.gz | 4.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| matchingsplit-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.8 kB
Release files / matchingsplit-0.1.2.tar.gz
| Download URL | matchingsplit-0.1.2.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
be93789fcfddd9602711406853d114f825dc67bd025ab2a6130c97b573532a24
|
|
BLAKE2b-256 checksum How to use checksums |
53cf583b5c9c1fc7a31936d357d4ca0709385fa240a07acb0b9b49a0362693df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Release files / matchingsplit-0.1.2-py3-none-any.whl
| Download URL | matchingsplit-0.1.2-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
58def0ac2c92a1003cb44ed8066b30e6a21a7bbefb48196202b8b6d358935f1c
|
|
BLAKE2b-256 checksum How to use checksums |
3b15794abbabf306400d72d3be2c33fc4de7c6c8a30de786d3acaad133a2f58b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|