Giter Site home page Giter Site logo

Comments (3)

mphilli avatar mphilli commented on July 24, 2024

A decent portion of the symbols can be found on line #106 of the transcibe.py file. Here are the IPA symbols repeated here:

{"ə","eɪ", "ɑ", "æ", "ə", "ɔ", "aʊ", "aɪ", "ʧ", "ð", "ɛ", "ər", "h",
 "ɪ", "ʤ", "ŋ", "oʊ", "ɔɪ", "ʃ", "θ", "ʊ", "u", "ʒ", "i", "j"}

You'll notice some are missing here, though, mainly consonants. That's because the program converts the CMU Pronouncing Dictionary, which is in ARPABET notation, to IPA, and specifying the IPA symbols is unnecessary if they are the same, e.g. p → p.

So, this program does not precisely tell you all of the IPA symbols being used.

from english-to-ipa.

ArtemisZGL avatar ArtemisZGL commented on July 24, 2024

@mphilli, thanks for your reply, I have one more question. How can I split the symbols in one word? As a result of the word "drawing" is "drɔɪŋ", and it can be confusing about "d r ɔ ɪ ŋ" and "d r ɔɪ ŋ".

from english-to-ipa.

mphilli avatar mphilli commented on July 24, 2024

Maybe I'd need to understand better why you'd want to do that, but if you had an approved list of symbols that you wanted to potentially keep together, then you could create a function like this:

def split_word(ipa_word):

    together = ['ɔɪ'] # add more here
    together_space = [' '.join(list(i)) for i in together]

    split_ipa = ' '.join(list(ipa_word))

    for item in together_space:
        split_ipa = split_ipa.replace(item, item.replace(' ', ''))

    return split_ipa

print(split_word("drɔɪŋ"))
# prints 'd r ɔɪ ŋ'

from english-to-ipa.

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.