Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When i use epitran--English - Latn, it tells that root:lex_lookup (from flite) is not installed. But I have installed lex_lookup #58

Closed
JonneryR opened this issue Jul 31, 2020 · 3 comments

Comments

@JonneryR
Copy link

When i use epitran--English - Latn, it tells that root:lex_lookup (from flite) is not installed. But I have installed lex_lookup.

(base) [root@host-10-29-0-161 testsuite]# make lex_lookup
Makefile:83: warning: overriding recipe for target multi_thread' Makefile:80: warning: ignoring old recipe for target multi_thread'
make: `lex_lookup' is up to date.

Error:

import epitran
epi = epitran.Epitran('eng-Latn')
print(epi.transliterate(u'Berkeley'))
WARNING:root:lex_lookup (from flite) is not installed.
Traceback (most recent call last):
File "", line 1, in
File "/opt/huawei/data1/z00574176/G2P/git_reproduced/epitran-master/epitran/_epitran.py", line 62, in transliterate
return self.epi.transliterate(word, normpunc, ligatures)
File "/opt/huawei/data1/z00574176/G2P/git_reproduced/epitran-master/epitran/flite.py", line 96, in transliterate
acc.append(self.english_g2p(chunk))
File "/opt/huawei/data1/z00574176/G2P/git_reproduced/epitran-master/epitran/flite.py", line 214, in english_g2p
arpa_text = arpa_text.splitlines()[0]
IndexError: list index out of range

@dmort27
Copy link
Owner

dmort27 commented Jul 31, 2020

I does not appear that you have copied lex_lookup to a place in your path. To test, try entering lex_lookup at the command line.

@JonneryR
Copy link
Author

JonneryR commented Aug 3, 2020

I does not appear that you have copied lex_lookup to a place in your path. To test, try entering lex_lookup at the command line.
When I tried to enter lex_lookup, this message appeared.
bash: lex_lookup: command not found

@JonneryR
Copy link
Author

JonneryR commented Aug 3, 2020

I does not appear that you have copied lex_lookup to a place in your path. To test, try entering lex_lookup at the command line.

I find the problem, the path which I used is wrong. I have to use '/usr/bin'. Thanks!

@dmort27 dmort27 closed this as completed Nov 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants