User Guide/Toolbox/Import PRAAT TextGrid: Difference between revisions

From STX Wiki
Jump to navigationJump to search
No edit summary
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Toolbox}}
{{Toolbox}}
__TOC__
=={{STX}} >= 5.0==
[[File:stx_ug_import_praat_textgrid_file.png]]
This dialog allows you to specify how segments are created when importing a TextGrid file.
===Segment ID format===
You can specify the way that the imported segments names are generated.
* <segment>.<index>, which will create a segment using the ''Segment'' text, a period, and then an incremental index (e.g. seg.001).
* <tier>.<index>, which will create segments prepended with the tier name (here MAU) and appended with an incremental index (e.g. MAU.001).
* <segment>.<tier>.<index>, which will combine the above two (e.g. seg.MAU.001).
===store tier in attribute===
You can choose to store the name of the tier in a segment attribute. If you choose to name your segments using the tier, this may be unnecessary.
===Text Attribute Name===
Specify the segment attribute to store the imported text in.
===reset index for each tier===
If you are importing multiple tiers, you may wish to use an independent index for each tier. This option is only available if you specify the tier in the segment name.
=={{STX}} <= 4.4.10==


[[File:stx_ug_toolbox_import_praat_textgrid.png]]
[[File:stx_ug_toolbox_import_praat_textgrid.png]]
The <samp>Import_PRAAT_TextGrid</samp> toolbox function can import a TextGrid file created in [http://www.fon.hum.uva.nl/praat PRAAT] into {{STX}} creating one segment per interval and assigning interval text to a segment attribute.
===How to use===
* In the [[User_Guide/Workspace | Workspace]], select the sound file you want to import the TextGrid into.
* Select the <samp>Import_PRAAT_TextGrid</samp> toolbox function from the <samp>Toolbox->Dataset</samp> menu.
* Load the TextGrid file you want to import by pressing the button with the ellipsis and navigating to the file.
* Choose which attribute to import text into by double-clicking the <samp>Attribute</samp> entry and entering the attribute name.
* If you wish to skip importing a tier, then double-click the <samp>Mode</samp> entry for that tier and select <samp>skip</samp>.
* Specify the base <samp>segment id</samp> (default: <samp>tier</samp>) for created segments. Segments are consecutively numbered (e.g.: tier.000, tier.001 etc.).
* Specify the <samp>tier attribute</samp> (default: <samp>tier</samp>) in which to save the tier name. If you prefer, you can use the tier name as the base segment id (check the <samp>tier name = segment id</samp> checkbox).
* If you want to use the same text attribute for all tiers, then you can sync all tiers to the attribute specified in the first entry by pressing the <samp>Sync Text Attributes</samp> button.
* Press <samp>Import</samp> to start the import.

Latest revision as of 11:11, 13 September 2019

STx >= 5.0

Stx ug import praat textgrid file.png

This dialog allows you to specify how segments are created when importing a TextGrid file.

Segment ID format

You can specify the way that the imported segments names are generated.

  • <segment>.<index>, which will create a segment using the Segment text, a period, and then an incremental index (e.g. seg.001).
  • <tier>.<index>, which will create segments prepended with the tier name (here MAU) and appended with an incremental index (e.g. MAU.001).
  • <segment>.<tier>.<index>, which will combine the above two (e.g. seg.MAU.001).

store tier in attribute

You can choose to store the name of the tier in a segment attribute. If you choose to name your segments using the tier, this may be unnecessary.

Text Attribute Name

Specify the segment attribute to store the imported text in.

reset index for each tier

If you are importing multiple tiers, you may wish to use an independent index for each tier. This option is only available if you specify the tier in the segment name.

STx <= 4.4.10

Stx ug toolbox import praat textgrid.png

The Import_PRAAT_TextGrid toolbox function can import a TextGrid file created in PRAAT into STx creating one segment per interval and assigning interval text to a segment attribute.

How to use

  • In the Workspace, select the sound file you want to import the TextGrid into.
  • Select the Import_PRAAT_TextGrid toolbox function from the Toolbox->Dataset menu.
  • Load the TextGrid file you want to import by pressing the button with the ellipsis and navigating to the file.
  • Choose which attribute to import text into by double-clicking the Attribute entry and entering the attribute name.
  • If you wish to skip importing a tier, then double-click the Mode entry for that tier and select skip.
  • Specify the base segment id (default: tier) for created segments. Segments are consecutively numbered (e.g.: tier.000, tier.001 etc.).
  • Specify the tier attribute (default: tier) in which to save the tier name. If you prefer, you can use the tier name as the base segment id (check the tier name = segment id checkbox).
  • If you want to use the same text attribute for all tiers, then you can sync all tiers to the attribute specified in the first entry by pressing the Sync Text Attributes button.
  • Press Import to start the import.

Navigation menu

Personal tools