orianakc / dissertation Goto Github PK
View Code? Open in Web Editor NEWSource files for dissertation-related scripts
Source files for dissertation-related scripts
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.
Syllable
tags have a nite:child
attribute which lists the range of phone
s 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?
(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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.