Giter VIP home page Giter VIP logo

Comments (2)

dmort27 avatar dmort27 commented on August 16, 2024

The deletion is by design. The applications for which this method were originally designed required that only segments that were converted from orthography to IPA be present in the X-SAMPA output. The Epitran.strict_trans method does that. Epitran.transliterate allows every character that cannot be mapped to IPA to "pass through" to the output. In noisy data this can produce some unexpected results. For example, many of the output segments will not be valid IPA and cannot be converted to X-SAMPA.

(I'm confused by the Swedish example, though. This appears to be due to errors in the mapping file.)

If you want something like this, the best solution is to add another method, rather than change the existing one which already does what we want it to do. Submit a pull request and I'll add this.

from epitran.

m-wiesner avatar m-wiesner commented on August 16, 2024

Thanks for the answer. I thought it might be something like that at first, but the swedish example also seemed strange to me.

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.