Giter VIP home page Giter VIP logo

Comments (5)

dmort27 avatar dmort27 commented on July 17, 2024 2

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.

dzieciou avatar dzieciou commented on July 17, 2024

@hamadazahera What was the fix that helped you?

from epitran.

dmort27 avatar dmort27 commented on July 17, 2024

I would also like to know.

from epitran.

dzieciou avatar dzieciou commented on July 17, 2024

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.

dzieciou avatar dzieciou commented on July 17, 2024

Right, installing lex_lookup helped a lot. Thank you.

from epitran.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.