Outputting KWAL search by keywords

Leonid Spektor spektor at andrew.cmu.edu
Sat Jun 19 14:40:10 UTC 2010


 Mits,

	Unfortunately, there is no way to do this in one pass. Kwal program is designed to output every matched tier only once, no matter how many keywords are found on this one tier. The only thing I can recommend is that you run separate kwal command for every keyword you are looking for and later merge all outputs into one file. For example, your command would look like this:

kwal +sgrapes +d4 +o%xpho *.cha +f +u
kwal +sspoon +d4 +o%xpho *.cha +f +u
kwal +splease +d4 +o%xpho *.cha +f +u
kwal +splate +d4 +o%xpho *.cha +f +u

You can also store all those commands into batch file, like the one I have created and I am attaching to this email. And run this batch file with this command:

batch batch.cut

Leonid.

-------------- next part --------------




On Jun 18, 2010, at 19:46, Mits Ota wrote:

> I'm trying to extract productions of target words with onset clusters
> (e.g., /pl/) and organize the output in a wide dataframe with age,
> keyword (target), main tier and the %pho tier as column variables.
> I've created a list of all relevant words in the child's lexicon using
> FREQ, and run the list through KWAL with +d4 and +o%xpho, which gives
> me something like the following.
> 
> <filename>	1475	grapes	*CHI:	Mommy eat grapes . %xpho: m6mI it greps?
> <filename>	1485	spoon	*CHI:	spoon . %xpho: ?pun
> <filename>	1520	please, plate	*CHI:	please pass me the plate . %xpho:
> piz paes mI d6 plet
> ...
> 
> This is more or less what I'm looking for and I can convert the
> filenames to age info. The only problem is that, by default, KWAL
> organizes the output by main tiers, so if there are two or more hits
> in a single utterance (like the 'please' and 'plate' example above),
> the multiple hits are listed in one output. What I want is to have
> these treated separately. In other words, I want each keyword hit
> forming a row, like this example below (with the main tier and %pho
> tier duplicated, as both hits come from the same utterance):
> 
> <filename>	1520	please	*CHI:	please pass me the plate . %xpho: piz
> paes mI d6 plet
> <filename>	1520	plate	  *CHI:	please pass me the plate . %xpho: piz
> paes mI d6 plet
> 
> Is there a simple way to do this?
> 
> Thanks,
> 
> Mits
> 
> -- 
> You received this message because you are subscribed to the Google Groups "chibolts" group.
> To post to this group, send email to chibolts at googlegroups.com.
> To unsubscribe from this group, send email to chibolts+unsubscribe at googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/chibolts?hl=en.
> 
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: batch.cut
Type: application/octet-stream
Size: 151 bytes
Desc: not available
URL: <http://listserv.linguistlist.org/pipermail/chibolts/attachments/20100619/1c68a566/attachment-0001.obj>
-------------- next part --------------
-- 
You received this message because you are subscribed to the Google Groups "chibolts" group.
To post to this group, send email to chibolts at googlegroups.com.
To unsubscribe from this group, send email to chibolts+unsubscribe at googlegroups.com.
For more options, visit this group at http://groups.google.com/group/chibolts?hl=en.



More information about the Chibolts mailing list