xinjli / transphone

phoneme tokenizer and grapheme-to-phoneme model for 8k languages
MIT License
143 stars 13 forks source link

Add package version to requirements.txt #14

Open StephanAkkerman opened 3 months ago

StephanAkkerman commented 3 months ago

The current requirements.txt does not include any package version for the listed packages. This causes multiple issues if you install the transphone package currently.

A module that was compiled using NumPy 1.x cannot be run in        
NumPy 2.0.0 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.        
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.

If you are a user of the module, the easiest solution will be to   
downgrade to 'numpy<2' or try to upgrade the affected module.      
We expect that some modules will need time to support NumPy 2.   
ModuleNotFoundError: No module named 'jamo'
StephanAkkerman commented 3 months ago

The working requirements.txt seem to be

scipy==1.11.1
numpy==1.25.1
panphon==0.20.0
torch==2.0.1
editdistance==0.6.2
requests==2.31.0
tqdm==4.66.2
pyyaml==6.0.1
phonepiece==1.4.2
epitran==1.24
unidecode==1.3.6
mecab-python3==1.0.6
cmudict==1.0.13