Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Helpers for interacting more easily with `faster_whisper` especially when it comes | |
| to generating subtitles. | |
| Notes | |
| ----- | |
| The code is quite strict / opionated (e.g. additional parameters cannot be passed for the transcription | |
| than the ones I manually defined) as it was not meant to be shared initially and I did | |
| not take time to "generalize" it more. | |
| """ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Module containing a function to preserve leading zeroes (and other symbols such as "+", spaces and | |
| parentheses in phone numbers and zip codes) when reading data with pandas. | |
| WARNING: Use this caution, I most likely haven't covered all cases in the tests I wrote. | |
| """ | |
| import inspect | |
| import io | |
| import pandas as pd | |
| import re |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Tested with Pop OS (an Ubuntu clone) | |
| # **INSTALLATION**: | |
| ## Install Python dependencies | |
| * pip install jaydebeapi # latest version was '1.1.1' at the time of writing the gist | |
| * pip install JPype1==0.6.3 # IMPORTANT! (latest: 0.7.2 did not work) | |
| ## Get the Persavive SQL driver |