TGA: Time Group Analyser - Version 3.04

Dafydd Gibbon (Bielefeld)
in cooperation with Jue Yu (Hangzhou)

A Python CGI web tool.
WARNING - pre-alpha status!
  1. This tool will DEFINITELY not work with most TextGrid files, because...
  2. The tool is designed to handle ONLY one particular small set of ASCII symbols.
  3. Only interval tiers are handled (obviously), and then only syllable annotations.
  4. Within the above constraints, long or short TextGrid Interval Tier formatsare handled.
  5. You will be lucky not to get arbitrary error output if you try anything else.
  6. Response time depends on TextGrid tier length and (for deceleration and acceleration) global threshold range. Be patient!
Automatic recognition heuristic for input data formats (examines only first line, not foolproof)
  1. Praat TextGrid full and short formats (specified tier picked out of arbitrarily many tiers)
  2. Single-tier CSV table (do not mix separators in the same data set):
      row := label sep starttime sep endtime [ sep duration ]
      sep := TAB | SP | "," | ";" | ":"
  3. Timestamp values in all formats are in seconds with dot decimal point (not milliseconds, and not comma), following Praat TextGrid conventions.

TextGrid input control parameters (long or short TextGrid format accepted; only Interval Tiers, obviously)
Tier name: (max length 20; not needed for CSV formats)
Pause symbol: (max length 20; also needed for CSV formats)
More than one pause symbol permitted; separate with spaces. Delete any of the examples which might occur as an annotation label. If your pause symbol is not in the examples given, enter it

Time Group duration difference parameters:
TG criterion: pausegroup deceleration (increasing) acceleration (decreasing)

Local threshold: ms (try values less than common syllable lengths, e.g. 0 ... 300 ms)
Used for local pattern extraction and TimeTree parsing.
Local pattern symbols:Longer: (1 char) Shorter: (1 char) Same: (1 char)
Time Tree criterion:
(quasi-)iambic TTgt (quasi-)trochaic TTlt show all TT
(quasi-)iambic TTgte (quasi-)trochaic TTlte do not show TT

Global TG threshold range: ... ms (minimal duration difference)
Ranges > 30 are not permitted because of possible server overload.
Global threshold is ignored with the 'pausegroup' criterion.
Experiment with values from 0 to 500 (negative values are permitted).
Equal range boundaries are adjusted to have range of 1, not null; if necessary values are switched to ensure 'low before high'.
Min TG length: > (generally >2, as 'minimal rhythm')

Time Group output control parameters:
Print text? no yes
TG element info? no yes
TG detail? no yes

n-grams? no yes
Time Trees? no yes
CSV output? no yes

All outputs: no yes

Operation:

Example TextGrid (test, then delete and paste your own):
Note: Input timestamp values in all formats are in seconds with '.' (dot) decimal point (following Praat TextGrid conventions), and neither milliseconds nor seconds with ',' (comma) decimal point. Output timestamp values are in milliseconds.

2012-07-09 V 1.0Basic Syllable and Time Group parser with deceleration and acceleration criteria
2012-08-15 V 1.1Bugfix and enriched output
2013-03-10 V 2.0Cycle through threshold range
2013-03-12 V 2.1Picks specifiedtier out of unedited TextGrids with arbitrary number of tiers
2013-03-13 V 2.2Introduction ofpause group parsing option
2013-03-13 V 2.3Additional quantitative output; syllable tier symbol to be input by user
2013-03-21 V 2.4Further modularisation, more input options, no functional difference
2013-03-23 V 2.5Someerror proofing. Use of numpy.
2013-03-23 V 2.6Locallonger-shorter-equal pattern visualisation
2013-03-23 V 2.7Pattern input options
2013-03-30 V 2.8Pattern testing
2013-03-30 V 2.9CSV input added; parse summary information extended
2013-03-30 V 2.10TimeTrees added.
2013-03-30 V 3.0SD added to TimeGroups; various correlations; blob duration visualisation.
2013-03-30 V 3.01ndiff analysis added to TimeGroup patterns.
2013-03-30 V 3.01ngramm and time tree analysis; various format and output additions.
To do:CV set input etc.; sep calc fr pr

Created:Tuesday, July 10, 2012 7:25:09 AM CEST.
Last Modified: Tuesday, April 16, 2013 7:03:42 AM CEST
D. Gibbon