Exclude Utterances Containing a Symbol

36 views
Skip to first unread message

Jacob Feldman

unread,
Mar 28, 2013, 9:24:48 AM3/28/13
to chib...@googlegroups.com
Hello All,

I am trying to run FREQ on some old data, but all the utterances which contained an action were coded as "&= action" so they are not automatically excluded from the FREQ (or MLU) computations.  Is there any way to exclude any utterance from analysis that contains the & symbol?  Or is there another to exclude these utterances?  I'm open to anything that doesn't involve recoding years of data.

Thank you,
Jacob Feldman

Leonid Spektor

unread,
Mar 28, 2013, 10:09:01 AM3/28/13
to chib...@googlegroups.com
Jacob,

I want to first fully understand your situation. Is "action" actually coded with space character between "&=" symbols and the "action" code itself as you described in your email or is it coded without a space character as in "&=action"? The reason I am asking is because currently both FREQ and MLU exclude anything that starts with "&" symbol, but CLAN stops at a space character. If you have a space character between "&=" and "action" as in "&= action", then I am afraid there nothing can be done except changing your data files to remove that space character. Fortunately that change can be made easily and automatically with some text editors like BBEdit or even with the following CHSTRING command in CLAN:

chstring +s"&= " "&=" -w t.cha


If there is no space character between the "&=" and the "action" code as in "&=action, then please email to me a sample data file and CLAN command line that will show the problem you are having.


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 post to this group, send email to chib...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/chibolts/-/oduY28n9xSAJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Jacob Feldman

unread,
Mar 28, 2013, 10:14:27 AM3/28/13
to chib...@googlegroups.com
Leonid,

It does have the space in the utterance, as in "&= action."

Thank you for your assistance.

Jacob

Leonid Spektor

unread,
Mar 28, 2013, 10:20:29 AM3/28/13
to chib...@googlegroups.com
Jacob,

After reading your email again I am not sure if you want to exclude the whole utterance based on presence of "&=action" code or only the "&=action" symbol from analyses. If you want to exclude the whole utterance that has "&=action" or "&= action" symbols, then you can use KWAL command to first filter out those utterances from your data with this command:

kwal -s&=* -d +f +t% +t@ *.cha

and then run FREQ and MLU on data files *.kwal.cex.


Leonid.



To view this discussion on the web visit https://groups.google.com/d/msg/chibolts/-/ADBzoQhrk7MJ.
Reply all
Reply to author
Forward
0 new messages