Giter Site home page Giter Site logo

dissertation's People

Contributors

orianakc avatar

Watchers

 avatar  avatar  avatar

dissertation's Issues

Matching phones to words/syllables in extract-switchboard-stp.py

The STP files have on each line the end time, the number 121 (?), and a phone/syllable/word.

Currently, extract-switchboard-stp.py matches the phone with its syllable or word with this code:

for s in speaker.wrd:
                if s['time']>=i['time'] and speaker.wrd[speaker.wrd.index(s)-1]['time']<i['time']:
                    valDict['wrd'] = s['value']
                    valDict['wrdTime'] = s['time']

Sometimes the times seem to be off, in that the end time for a word (e.g. "THAT" at 4.401200 from file 2151-A-0003.wrd) is earlier than the end time given for the phone or syllable (4.401687 for the corresponding [t] in 2151-A-0003.phn and 4.401690 for the syllable [dh ix t] 2151-A-0003.syl). This means that the script matches the following (wrong) word.

Matching phone with the syllable that contains it

Syllable tags have a nite:child attribute which lists the range of phones associated with that syllable:

<nite:child href="sw4168.A.phones.xml#id(ms6A_ph1)..id(ms6A_ph3)"/>

How to efficiently match, e.g. phone ms6A_ph2 with the syllable above?

[q] and [dx] not from /t/

(reposting something here that Oriana sent in an email)

Also -- some glottal stops and flaps come from sources other than /t/, of course. 
What do you think would be a good way to separate them out? 
Maybe use orthography to get underlying form from a pronunciation dictionary? 
Then I would really need to figure out the issue with word/phone alignment.

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.