Wav2letter: zcat on macOS always appends a .Z to the filename (better use gunzip -c)

Created on 28 Jun 2018  路  2Comments  路  Source: flashlight/wav2letter

I ran convert-arpa.lua on macOS 10.13.5 and got the following error:

zcat: can't stat: 3-gram.pruned.3e-7.arpa.gz (3-gram.pruned.3e-7.arpa.gz.Z): No such file or directory. 

I found the solution in another github thread. It seems that zcat on macOS always appends .Z to all filenames. The proposed solution is to use gunzip -c.

Changing line 67 in convert-arpa.lua to the following fixed the issue:

ifarpa = io.popen(string.format('gunzip -c %s', opt.arpasrc))
wav2letter-lua

Most helpful comment

@juancq gunzip -c worked like a champ for me. You're a gentleman and a scholar. 馃檪

All 2 comments

Closing as we do not support the lua version of wav2letter anymore.

@juancq gunzip -c worked like a champ for me. You're a gentleman and a scholar. 馃檪

Was this page helpful?
0 / 5 - 0 ratings

Related issues

abhinavkulkarni picture abhinavkulkarni  路  3Comments

kamakshi-malhotra picture kamakshi-malhotra  路  5Comments

bill-kalog picture bill-kalog  路  4Comments

mlexplore1122 picture mlexplore1122  路  3Comments

tarang-jain picture tarang-jain  路  3Comments