VttToTextGrid
Converts WebVTT subtitle files to Praat TextGrids
Deserializing from “WebVTT subtitles” text/vtt
Command-line configuration parameters for deserialization:
--nonWordPattern=(\([0-9]+\.[0-9]+\))|([\p{Punct}&&[^_]]) |
Regular expression to identify non-word characters for joining to a neighboring words e.g. (([0-9]+.[0-9]+)) | ([\p{Punct}&&[^_]]) - set this blank to simply tokenize on spaces. |
Serializing to “Praat TextGrid” text/praat-textgrid
Command-line configuration parameters for serialization:
--commentLayer=Layer |
Commentary |
--noiseLayer=Layer |
Noise annotations |
--lexicalLayer=Layer |
Lexical tags |
--pronounceLayer=Layer |
Manual pronunciation tags |
--renameParticipantsMatching=String |
A regular expression identifying participants that should be renamed using renameParticipantsTo - e.g. S([0-9]) |
--renameParticipantsTo=String |
A pattern specifying how participants identified by renameParticipantsTo should be renamed - may contain capturing group referencs like $1, or ${id}/${filename} for the filename without/with extension - e.g. ${id}-$1 |
--allowPeerOverlap=false |
Allows TextGrids with, for example, multiple segment tiers, if the underlying annotations are invalid and have overlapping segments. |
--utteranceThreshold=0.5 |
Minimum inter-word pause to trigger an utterance boundary, when no utterance layer is mapped. 0 means ‘do not infer utterance boundaries’. |
--useConventions=false |
Whether to use text conventions for comment, noise, lexical, and pronounce annotations |
--ignoreLabels=String |
Regular expression for annotation to ignore, e.g. <p:> to ignore MAUS pauses |
--includeMetaData=false |
Whether to include transcript attributes as one-annotation tiers or ignore them |
nzilbb.converter.vtttotextgrid