CoolFace
Apppublic

CalebKoster/Translation_Note_Alignment

sourceHugging Faceupdated 3y agoView on Hugging Face
0likes
romanize.cpython-39.pyc13 linesDownload Raw Back to __pycache__
1a

2R��eK�@s�ddlZddlZddlZddlZdZdZeed��&Ze�e�Z	e�3e	j�Wd�n1s^0Ye�ed��Z
e
��Wd�n1s�0Yd	dd�ZdS)4�Nz>https://github.com/isi-nlp/uroman/archive/refs/tags/v1.2.8.zipz5uroman.zip�wb�rFcCs�d}d|g}|r|�d|g�|r,|�d�tj|tjtjtjd�}|j|��d�\}}|jdkr�td|j�d	|�	����dS|�	�S)6NzLC:/Users/caleb/Bible Translation Project/guidance/uroman-1.2.8/bin/uroman.pl�perlz-lz--chart)�stdin�stdout�stderr)�inputrzError code z: )7�extend�append�8subprocess�Popen�PIPE�communicate�encode�9returncode�print�decode)Zinput_string�languageZchart�script_path�command�processrr�r�=c:\Users\caleb\Bible Translation Project\guidance\romanize.py�uromans1011r)NF)�os�zipfile�requestsr�url�zip_filename�open�zip_file�get�response�write�content�ZipFileZzip_ref�12extractallrrrrr�<module>s13*&