Obtaining a list of words following an error mention

29 views
Skip to first unread message

sophie....@gmail.com

unread,
Aug 7, 2024, 8:13:55 AM8/7/24
to chibolts
Hello everyone,

I am looking for a procedure that would allow me to display all the words following a specific error mention. More precisely, I would like to be able to go through all my transcripts and obtain a list of all words following a mention of omission "0det" in the %CHI tier, if possible, per transcript. Does such a formula exist?

Thank you in advance for your help.

Best regards,

Sophie Fagniart

Leonid Spektor

unread,
Aug 7, 2024, 9:13:31 AM8/7/24
to ChiBolts
Hi Sophie,

There are numerous ways to do it. Here are some commands that you can try:

freq +s"0_* *" +c7 *.cha
freq +o3 +s"0_* *" +c7 *.cha

add +d option to show where in the file those items occur
add +f option to save results to an output file
add +u option to get combined results for all files



Leonid.

--
You received this message because you are subscribed to the Google Groups "chibolts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chibolts+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chibolts/5533401b-ff7d-408f-93b6-82a7cab279f2n%40googlegroups.com.

Fagniart Sophie

unread,
Aug 9, 2024, 8:35:25 AM8/9/24
to chib...@googlegroups.com

Thank you for your response.

This code:

freq +o3 +s"0det" *.cha @

had already worked and allowed me to get the number of occurrences of the targeted error. However, I would like to obtain, for each subject, the list of words that follow this error.

For example:

CHI* : 0det dog

To have, in the form of a table or a list, all the words that followed this error (in the example "dog"), per transcription.

Is this possible? 

Thank you in advance.


Leonid Spektor

unread,
Aug 9, 2024, 11:16:31 AM8/9/24
to ChiBolts

Try commands that I recommended in my previous email. For example:

freq +o3 +s"0det *" +c7 *.cha

will give you output:

1 0det dog

Note that +s option has (0det) followed by a space character  followed by (*) character surrounded by double quotes (") character.


Leonid.

Fagniart Sophie

unread,
Aug 9, 2024, 3:17:23 PM8/9/24
to chib...@googlegroups.com

Thank you for your clarifications. Unfortunately, this code doesn't work; the software doesn't find any matching occurrences, whereas the same code, freq +o3 +s"0det" +c7 *.cha, simplified without the space and the * symbol, works (but I don't get the following words). I updated my software, as my version dated back to 2022, in case this syntax is only supported by a recent version. However, I received the following error message:

"freq +o3 +s"0det *" +c7 *.cha

Can't open either one of the UD features codes list files:
"UD_features.cut", "C:\TalkBank\CLAN\lib\UD_features.cut"
Check to see if lib directory is set correctly. It is located next to CLAN application.

Lib directory can be set in "Commands" window with "lib" button to
"C:\TalkBank\CLAN\lib" directory, for example."


The "lib" folder is correctly set.
Do you think it was justified to update the software (knowing that I didn’t use the UD system for my annotations), and if so, do you have any idea how to unblock the situation?
Thank you for your patience and availability.
Best regards


Leonid Spektor

unread,
Aug 9, 2024, 3:52:12 PM8/9/24
to chib...@googlegroups.com

There something corrupted in CLAN's setup on your PC. I have just tried the same command on my Windows 11 and it works. The "UD_features.cut" file should be located in directory "C:\talkbank\clan\lib\fixes\". Maybe that file did not get installed on your PC. Please make sure that "UD_features.cut" file is where it is supposed to be on your PC. Please, let me know if it not there. Otherwise, try solutions below.

Please make sure that CLAN version is "V 09-Jul-2024 11:00". You can get version number with menu "Help->About Clan...". Sometimes installer fails to install the latest version for some reason.

Please try to reset CLAN options with menu "Edit->Reset options". Just follow prompts it gives you and quit CLAN completely immediately when done.

If  reseting options does not help, then please do clean install of CLANWin. You can use PC's "Settings->Apps->Installed apps" window to uninstall CLAN. Then re-install new CLANWin again.


Leonid.

Fagniart Sophie

unread,
Aug 9, 2024, 4:03:11 PM8/9/24
to chib...@googlegroups.com
Thank you for the advice! By uninstalling and then reinstalling CLAN, the code worked; there was indeed a version incompatibility with the function.

Thanks again for your time.

Best regards,

Sophie 

Reply all
Reply to author
Forward
0 new messages