To create the histograms for speech prosody:

Step 1: Create a text file with necessary data:

    /predict_next/bin/read_save.py - reads in the data and selects the values specified in the input. The data are written into a text file. (see the script for further comments)

Step 2: Draw histogram.

    predict_next/bin/histo_any.py <text_file> - creates a figure with several histograms for each line in the textfile.

Examples:

aloukina@clove:/proj/aesop/predict_next/SpeechProsody2/temp_txt$ python /home/aloukina/Project_files/predict_next/read_save.py -l Chinese -cat selector -out effect_size2 -select "lbl=='V'" -d lbl_V

aloukina@clove:/proj/aesop/predict_next/SpeechProsody2/temp_txt$ histo_any.py lbl_V/Chinese_all_selector_effect_size2/ -s histo/lbl_V

aloukina@clove:/proj/aesop/predict_next/SpeechProsody2/temp_txt$ python /home/aloukina/Project_files/predict_next/read_save.py -l Chinese -cat selector -out effect_size2 -select "lbl=='C'" -d lbl_C

aloukina@clove:/proj/aesop/predict_next/SpeechProsody2/temp_txt$ histo_any.py lbl_C/Chinese_all_selector_effect_size2 -s ../histo/lbl_C

aloukina@clove:/proj/aesop/predict_next/SpeechProsody2/temp_txt$ python /home/aloukina/Project_files/predict_next/read_save.py -l Chinese -cat lbl -out effect_size2

aloukina@clove:/proj/aesop/predict_next/SpeechProsody2/temp_txt$ histo_any.py Chinese_all_lbl_effect_size2 -s ../histo

Bash file:

    /predict_next/make_histo.sh
    /predict_next/make_histo_2.sh

These two files draw histograms for all kinds of combinations of language, ttype, lbl, selector etc.

OVERLAYED HISTOGRAM

    /predict_next/multi_histogram.sh  - an example of a bash script that draws an overlayed histogram


To create histograms that were used in baap:

Jpaper/baap_figs/baap.sh