Comments (5)
Try
$ ./configure && make
$ sudo make install
$ cd testsuite
$ make lex_lookup
$ sudo cp lex_lookup /usr/local/bin
I think you're using the older t2p
method and everything in Epitran is now set up to use the newer lex_lookup
method.
from epitran.
@hamadazahera What was the fix that helped you?
from epitran.
I would also like to know.
from epitran.
There seems to be an integration bug with flite but I am not able yet to determine where it comes from, because on some of our machines with same versions of flite and epitran it works fine, while on others it does not.
I see no option to re-open the issue myself, so I can probably submit a new one.
Here's how I reproduced the problem.
I have installed the recommended flite version
wget http://www.festvox.org/flite/packed/flite-2.0/flite-2.0.0-release.tar.bz2 -O flite-2.0.0-release.tar.bz2
tar xvfj flite-2.0.0-release.tar.bz2
rm flite-2.0.0-release.tar.bz2
cd flite-2.0.0-release
./configure && make
make install
sudo cp bin/t2p /usr/local/bin
I have installed the latest stable epitran version:
$ pip list | grep epitran
epitran 1.8
And tried with English
$ python
Python 3.6.9 (default, Oct 8 2020, 12:12:24)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import epitran
>>> t = epitran.Epitran("eng-Latn")
>>> t.transliterate("shot")
and got
WARNING:root:lex_lookup (from flite) is not installed.
Traceback (most recent call last):
File "reproduce.py", line 3, in <module>
t.transliterate("shot")
File "/home/m.gawinecki/virtualenv/la-aliasproc/lib/python3.6/site-packages/epitran/_epitran.py", line 62, in transliterate
return self.epi.transliterate(word, normpunc, ligatures)
File "/home/m.gawinecki/virtualenv/la-aliasproc/lib/python3.6/site-packages/epitran/flite.py", line 94, in transliterate
acc.append(self.english_g2p(chunk))
File "/home/m.gawinecki/virtualenv/la-aliasproc/lib/python3.6/site-packages/epitran/flite.py", line 214, in english_g2p
arpa_text = arpa_text.splitlines()[0]
IndexError: list index out of range
I guess first line is the problem:
from epitran.
Right, installing lex_lookup
helped a lot. Thank you.
from epitran.
Related Issues (20)
- Many Chinese words are not transcribed by cmn-Hans/cmn-Hant
- import epitran shows an error HOT 10
- Not able to pip install problem with building Edit Distance HOT 1
- Portuguese dictionary is missing entry for รตe
- Loading mapping files from other locations HOT 1
- Greek transliteration
- `panphon>=0.20` required but latest release it panphon 0.19.1 HOT 1
- How to judge whether the input text is "continuous single letter pronunciation" or "word pronunciation"
- Update tests
- IndexError: list index out of range HOT 2
- Reverse Transliterate looks for CSV file that doesn't exist in ~\data\map\ HOT 1
- Epitran overwrites global logging object with highest level
- Could not install lex_lookup on Windows HOT 4
- Could it be possible to use english transliteration without installing flite in further release ?
- Can not reproduce the example
- The American IPA output HOT 6
- Installing error
- Is vie-Latn correct?
- Update a new release from v1.24
- Problem with diacritics and transliterating to lists HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from epitran.