CoolFace
Apppublic

CalebKoster/Translation_Note_Alignment

sourceHugging Faceupdated 3y agoView on Hugging Face
0likes
romanize.cpython-312.pyc10 linesDownload Raw Back to __pycache__
12R��eK��:�ddlZddlZddlZddlZdZdZeed�5Zeje�Z	eje	j�ddd�ejed�5Z
e
j�ddd�dd�Zy#1swY�:xYw#1swY�xYw)�Nz>https://github.com/isi-nlp/uroman/archive/refs/tags/v1.2.8.zipz3uroman.zip�wb�rc��d}d|g}|r|jd|g�|r|jd�tj|tjtjtj��}|j|j
���\}}|jdk7r*td|j�d	|j����y|j�S)4NzLC:/Users/caleb/Bible Translation Project/guidance/uroman-1.2.8/bin/uroman.pl�perlz-lz--chart)�stdin�stdout�stderr)�inputrzError code z: )5�extend�append�6subprocess�Popen�PIPE�communicate�encode�7returncode�print�decode)�input_string�language�chart�script_path�command�processrr	s        �=c:\Users\caleb\Bible Translation Project\guidance\romanize.py�uromanrs���`�K��{�#�G������h�'�(�
����y�!����w�j�o�o�j�o�o�^h�^m�^m�n�G��(�(�|�/B�/B�/D�(�E�N�F�F����Q��
��G�.�.�/�r�&�-�-�/�1B�C�D���=�=�?��)NF)�os�zipfile�requestsr
�url�zip_filename�open�zip_file�get�response�write�content�ZipFile�zip_ref�8extractallr�rr�<module>r-s���	����G����	�,���%���x�|�|�C� �H��N�N�8�#�#�$�%�9�W�_�_�\�3�'��7�������%�%��10��s�.B�'B�B�B