IndexError: list index out of range
See original GitHub issueWhen I am running this code:
import epitran
epi = epitran.Epitran('eng-Latn')
print (epi.transliterate(u'Berkeley'))
I am using python+3. Would you please help me to fix this error?
File “/home/hamada/.local/lib/python3.6/site-packages/epitran/flite.py”, line 212, in english_g2p arpa_text = arpa_text.splitlines()[0] IndexError: list index out of range
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
List Index Out of Range – Python Error Message Solved
You'll get the Indexerror: list index out of range error when iterating through a list and trying to access an item that doesn't...
Read more >Python IndexError: List Index Out of Range Error Explained
Learn how to resolve the Python IndexError, list index out of range, why it occurs in for loops, while loops, and how to...
Read more >Python IndexError: List Index Out of Range [Easy Fix]
The error “list index out of range” arises if you access invalid indices in your ...
Read more >Indexerror: list Index Out of Range in Python
“List index out of range” error occurs in Python when we try to access an undefined element from the list. The only way...
Read more >Index Error: list index out of range (Python) [duplicate]
Generally it means that you are providing an index for which a list element does not exist. E.g, if your list was [1,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Try
I think you’re using the older
t2pmethod and everything in Epitran is now set up to use the newerlex_lookupmethod.Right, installing
lex_lookuphelped a lot. Thank you.