You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
599 B
14 lines
599 B
set -e
|
|
set -x
|
|
|
|
pynini=pynini-2.1.4
|
|
|
|
test -e ${pynini}.tar.gz || wget http://www.openfst.org/twiki/pub/GRM/PyniniDownload/${pynini}.tar.gz
|
|
test -d ${pynini} || tar -xvf ${pynini}.tar.gz && chown -R root:root ${pynini}
|
|
|
|
#wfst_so_path=$(python3 -c 'import sysconfig; import os; from pathlib import Path; site = sysconfig.get_paths()["purelib"]; site=Path(site); suffix = ("/usr/local/lib",) + site.parts[-2:]; print(os.path.join(*suffix));')
|
|
|
|
pushd ${pynini} && python setup.py install && popd
|
|
|
|
#cp ${wfst_so_path}/pywrapfst.* $(python3 -c 'import sysconfig; print(sysconfig.get_paths()["purelib"])')
|