Estimate the score:
MLE needs normalization:
but
| # pip install pypdf | |
| from __future__ import annotations | |
| import argparse | |
| from pathlib import Path | |
| from typing import List, Tuple | |
| from pypdf import PdfReader, PdfWriter | |
| def parse_ranges(ranges_str: str, total_pages: int) -> List[Tuple[int, int]]: |
| #!/usr/bin/env python3 | |
| import argparse | |
| import re | |
| import subprocess | |
| import sys | |
| from pathlib import Path | |
| from typing import Optional | |
| from texmd import tex # pip install texmd |
| import os | |
| import sys | |
| import glob | |
| import whisper | |
| def find_audio_files(directory): | |
| # mp3 and m4a, case-insensitive | |
| patterns = ["*.mp3", "*.MP3", "*.m4a", "*.M4A"] | |
| files = [] | |
| for pattern in patterns: |
| #!/usr/bin/env python3 | |
| import os | |
| import re | |
| import io | |
| import argparse | |
| from concurrent.futures import ThreadPoolExecutor | |
| def search_file(path: str, regex: re.Pattern, encoding: str, bufsize: int): | |
| """ |
| import pandas as pd | |
| def df_to_latex(df, table_caption, table_label): | |
| # Start building the LaTeX table string | |
| latex_str = r""" | |
| \renewcommand{\arraystretch}{1.5} % Adjust this value to change the row height | |
| \begin{table}[h!] | |
| \centering | |
| \begin{adjustbox}{max width=\textwidth, center} % Fit table to page width and center it |
| from time import sleep | |
| import zipfile | |
| import string | |
| import itertools | |
| from concurrent.futures import ProcessPoolExecutor, as_completed | |
| # Define the path to the zip file and character set for passwords | |
| zip_file_path = '/content/0.zip' | |
| last_password_file = '/content/last_password.txt' | |
| characters = string.ascii_uppercase |
| import zipfile | |
| import tarfile | |
| import os | |
| def zip_folder(folder_path, zip_filename): | |
| with zipfile.ZipFile(zip_filename, 'w') as zipf: | |
| for foldername, subfolders, filenames in os.walk(folder_path): | |
| for filename in filenames: | |
| file_path = os.path.join(foldername, filename) | |
| arcname = os.path.relpath(file_path, folder_path) |
| # -*- coding: utf-8 -*- | |
| """vocab.ipynb | |
| Automatically generated by Colaboratory. | |
| Original file is located at | |
| https://colab.research.google.com/drive/1GNxF9QyJc8hL3KgVKB8t4GPgH8sGNTci | |
| """ | |
| # ! pip install google-translate-for-goldendict |