dmort27 / epitran

A tool for transcribing orthographic text as IPA (International Phonetic Alphabet)
MIT License
625 stars 120 forks source link

Reverse Transliterate looks for CSV file that doesn't exist in ~\data\map\ #153

Closed avaldez1412 closed 1 year ago

avaldez1412 commented 1 year ago

Running the following code:

from epitran import Epitran
epi_latam = Epitran('spa-Latn', rev=True)

I get the following message that Spanish Latin reverse CSV file was not found.

 File "C:\<my-path>\epitran\simple.py", line 100, in _load_g2p_map
    with open(path, encoding='utf-8') as f:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\<my-path>\\epitran\\data\\map\\spa-Latn_rev.csv'
avaldez1412 commented 1 year ago

I saw discussion on this issue: https://github.com/dmort27/epitran/issues/63