Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mysp.myprosody(p,c) giving parselmouth.PraatError: Stray text after 'else'. error #22

Open
bbrij87 opened this issue Apr 8, 2021 · 9 comments

Comments

@bbrij87
Copy link

bbrij87 commented Apr 8, 2021

Hello,

I could all functions up to mysp.myprosody(p,c) and this throws an error which is related to PRAAT file.

parselmouth.PraatError: Stray text after 'else'.
Script line 332 not performed or completed:
« else vowel1=vowel1+0 »
Script not completed.

mysp.myprosody(p,c)
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\bbrij\AppData\Local\Programs\Python\Python39\lib\site-packages\myprosody_init_.py", line 369, in myprosody
objects= run_file(sourcerun, -20, 2, 0.3, "yes",sound,path, 80, 400, 0.01, capture_output=True)
parselmouth.PraatError: Stray text after 'else'.
Script line 332 not performed or completed:
« else vowel1=vowel1+0 »
Script not completed.

I could run previous functions successfully.

mysp.myspsyl(p,c)
number_ of_syllables= 121
mysp.mysppron(p,c)
Pronunciation_posteriori_probability_score_percentage= :94.97

Here is the screenshot if it helps:
image

@bbrij87
Copy link
Author

bbrij87 commented Apr 9, 2021

Update: I executed the script on remote online server and got different response but I assume issue is with /myprosody/dataset/essen/MLTRNL.praat file.

image

The line 302 in myprosody/myprosody.py doesn't return anything.
image

@bbrij87
Copy link
Author

bbrij87 commented Apr 16, 2021

Any update?

@hebo1982
Copy link

hebo1982 commented May 7, 2021

MLTRNL.praat.zip

@bbrij87

I repaired it.

You should replace the file 'myprosody/dataset/essen/MLTRNL.praat'.

@AanchalA
Copy link

AanchalA commented Nov 23, 2022

@hebo1982
I replaced the old MLTRNL.praat with this new file and now it is giving a different error.
I tried using with python version 3.9 but since that did not work, I also tried with 3.7, but that also did not solve my problem.

ERROR:root:Unknown symbol: « appendInfoLine:0.7733333333333333,tab$,' Script line 882 not performed or completed: « appendInfoLine:'avepauseduratin',tab$,'avelongpause',tab$,'speakingtot:2',tab$,'avenumberofwords',tab$,'articulationrate',tab$,'inpro',tab$,'f1norm',tab$,'mr',tab$,'q25',tab$,'q50',tab$,'q75', tab$, 'std',tab$,'fmax',tab$,'fmin',tab$,'vowelinx1',tab$,'vowelinx2',tab$,'formantmean',tab$,'formantstd',tab$,'nuofwrds:0',tab$,'npause',tab$,'ins',tab$,'fillerratio',tab$,'xx',tab$,xxx$,tab$,'totsco',tab$,xxban$,tab$,'speakingrate' » Script not completed. Traceback (most recent call last): File "/home/ubuntu/Aanchal/EDA-and-Feature-Engineering/prosody/prosody_features.py", line 464, in mysplev objects = run_file(sourcerun, -20, 2, 0.3, "yes", sound, path, 80, 400, 0.01, capture_output=True) parselmouth.PraatError: Unknown symbol: « appendInfoLine:0.7733333333333333,tab$,' Script line 882 not performed or completed: « appendInfoLine:'avepauseduratin',tab$,'avelongpause',tab$,'speakingtot:2',tab$,'avenumberofwords',tab$,'articulationrate',tab$,'inpro',tab$,'f1norm',tab$,'mr',tab$,'q25',tab$,'q50',tab$,'q75', tab$, 'std',tab$,'fmax',tab$,'fmin',tab$,'vowelinx1',tab$,'vowelinx2',tab$,'formantmean',tab$,'formantstd',tab$,'nuofwrds:0',tab$,'npause',tab$,'ins',tab$,'fillerratio',tab$,'xx',tab$,xxx$,tab$,'totsco',tab$,xxban$,tab$,'speakingrate' » Script not completed.

@hebo1982
Copy link

@AanchalA

Cloud you show code help me reproduce this error?

The error like from praat script. You can debug praat.

@AanchalA
Copy link

AanchalA commented Dec 1, 2022

Hey @hebo1982
This issue was occuring because I was using a smaller file (5 seconds). When I used another file (17 seconds), this error was gone, but the values for all the features was zero.

@tyriaa
Copy link

tyriaa commented Apr 25, 2023

@AanchalA

Cloud you show code help me reproduce this error?

The error like from praat script. You can debug praat.

MLTRNL.praat.zip

@bbrij87

I repaired it.

You should replace the file 'myprosody/dataset/essen/MLTRNL.praat'.

Hey how did you fix it ?

Because that work for me but I have the same issue with mysplev()

@gabrieltirado
Copy link

gabrieltirado commented Mar 20, 2024

@AanchalA
Cloud you show code help me reproduce this error?
The error like from praat script. You can debug praat.

MLTRNL.praat.zip
@bbrij87
I repaired it.
You should replace the file 'myprosody/dataset/essen/MLTRNL.praat'.

Hey how did you fix it ?

Because that work for me but I have the same issue with mysplev()

name 'pickle' is not defined: https://stackoverflow.com/questions/48477949/not-able-to-pip-install-pickle-in-python-3-6

@jk6721189
Copy link

@AanchalA
Cloud you show code help me reproduce this error?
The error like from praat script. You can debug praat.

MLTRNL.praat.zip
@bbrij87
I repaired it.
You should replace the file 'myprosody/dataset/essen/MLTRNL.praat'.

Hey how did you fix it ?

Because that work for me but I have the same issue with mysplev()

It worked like charm post replacement of MLTRNL.praat(26.2KB) to MLTRNL.praat(26.1KB). thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants