Giter Site home page Giter Site logo

Comments (11)

dmort27 avatar dmort27 commented on July 30, 2024

This is perplexing. For some reason, lex_lookup is producing output with newlines. Can you try entering the following at the command line and reporting the output?

lex_lookup 'berkeley'

I want to rule out the possibility that this has something to do with the lex_lookup binary on your system. It should output (b er1 k l iy0)

from epitran.

brisvag avatar brisvag commented on July 30, 2024

Interesting. I get a repetition:

$ lex_lookup 'berkeley'
(b er1 k l iy0)
(b er1 k l iy0)

I suppose this means somehow my lex_lookup binary is misbehaving.

from epitran.

dmort27 avatar dmort27 commented on July 30, 2024

Indeed, your lex_lookup is not behaving as expected. What platform and what OS version are you on?

There is an easy, if kludgy, fix for this (within Epitran): split the output of lex_lookup on '\n' and take the first element in the resulting list. I'll implement this and make a new release today.

from epitran.

dmort27 avatar dmort27 commented on July 30, 2024

Try the new release (0.60) and see if it fixes the problem.

from epitran.

brisvag avatar brisvag commented on July 30, 2024

Indeed, your lex_lookup is not behaving as expected. What platform and what OS version are you on?

I'm on ArchLinux, and I built flite from the source on github. This might be some problem/change with the latest upstream... I really doubt I did anything strange, since the installation process is quite easy and streamlined.

Anyways, your quick-and-dirty fix works just fine, thank you!

from epitran.

dmort27 avatar dmort27 commented on July 30, 2024

You built flite from the GitHub source, then? This probably explains the problem. I think Alan Black, author of flite, may have changed the behavior of lex_lookup since the non-release release that is recommended in the README for Epitran. I'll talk to @awbcmu and @saikrishnarallabandi to see if there are any other interface changes to the lex_lookup interface that I should accomodate. Then perhaps I can start directing people to the GitHub source rather than the package linked from the README.

from epitran.

dmort27 avatar dmort27 commented on July 30, 2024

I just talked to @awbcmu and apparently there was a change in behavior in lex_lookup. He said epitran should take the first transcription, so the current behavior is right.

from epitran.

brisvag avatar brisvag commented on July 30, 2024

Good, glad this helped to solve something! I'd say this can be closed for good now.

from epitran.

WhiteFu avatar WhiteFu commented on July 30, 2024

@brisvag
Have you solved this problem? Is there a viable solution?

from epitran.

brisvag avatar brisvag commented on July 30, 2024

Yes. As I said in my last message, dmort's upstream fix was enough.

from epitran.

WhiteFu avatar WhiteFu commented on July 30, 2024

Thank you very much:)

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.