Comments (7)
How about just show warnings and info about it, instead of interrupting the process?
from praatio.
I could imagine all three scenarios would be useful in different cases: silence, warn, exit.
from praatio.
I'm getting closish to a release. Praatio 5.0 will feature Textgrid validation. Users will have a choice to to silently ignore errors, print to the screen (default behavior), or to stop execution on errors.
Wholistic validation is done on save but more narrow validation is done when automatic "unexpected" behavior might occur, such as when adding new entries to a tier or when adding a tier to a textgrid.
PR to change this and a lot of other things is here: #28
I still need to write lots of tests and update the documentation--I'm going to aim to have it done in a week or two.
from praatio.
Nevermind, and the new release looks amazing!
from praatio.
Adding a parameter to addTier to enforce lengths could be prblematic because its used in a lot of places.
What about a "safety" mode set on the Textgrid. If turned on, some operations will throw errors if they encounter unexpected data? Although that sounds kindof vague and hard to understand for the user about when or when something is or is not being validated.
from praatio.
That's very nice!
from praatio.
Praatio 5.0 is now released. As with my previous comment functions that may result in automatic "unexpected" behavior take a flag to either silently change, change and print a warning, or throw an exception.
Sorry for the delay, I was too ambitious in all of the features that I added into this release!
from praatio.
Related Issues (20)
- Montreal Forced Aligner compatability HOT 3
- openTextgrid() cannot correctly parse the file if there are '\n's within the label text of interval tiers HOT 5
- Can I fill the blanks in the tier by extending the existing intervals? HOT 21
- Make openTextgrid() and save() parameters manditory HOT 4
- Tier entries that have blank labels are not read HOT 6
- Issues parsing TextGrids from ELAN HOT 7
- Textgrids with non-unique tier names cannot be opened HOT 3
- PraatIO on conda-forge HOT 3
- TextGrids with a -0 xmin fail to parse HOT 3
- Validate support for Klattgrids
- Potential bug in `audio.extractSubwav` and/or `audio.openAudioFile` HOT 9
- TextGrid.tierDict can be modified, corrupting the TextGrid HOT 9
- More idiomatic json format HOT 3
- `intersection`: issue on consecutive duplicate words HOT 6
- Some API suggestions for next major release HOT 5
- Did there any incompatible upgrade in parratio==6.0.0 Textgrid' object has no attribute 'tierDict' HOT 4
- empty textgrid HOT 4
- Incorrect Error Message /praatio/data_classes/interval_tier.py line 99 HOT 2
- `pkg_resources` deprecation error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from praatio.