MLU using clauses?
Leonid Spektor
spektor at andrew.cmu.edu
Tue Jun 22 14:02:48 UTC 2010
Yuuko,
I have changed mlu and mlt to allow the use of "-s"<@s>" and -s"<@i>" options along with -c"[^c]" option. We never had a situation before in which someone wanted to exclude words delimited by <....> [code] from the tier mlu count, so this feature was disabled. Usually, the whole tier is excluded, which is done with postcodes, [+ ...]. You can use this command to get the results you want:
mlu -t%mor -c"[^c]" -s"<@s>" -s"<@i>" filename.cha
Please, note that you have to use the "-t%mor" option, because the clause codes and other codes are not specified on %mor tiers. The "%mor" tier is the default tier for mlu analysis.
Leonid.
On Jun 21, 2010, at 17:57, Yuuko Uchikoshi wrote:
> Than you Leonid for your email.
> We actually tried
>
> mlu -c"[^c]" -s"<@s>" -s"<@i>" filename.cha
>
> and we get the following error message…
>
> > mlu -c"[^c]" -s"<@s>" -s"<@i>" F1017*.cha
> -s@ or -s option can not be used together with either option +s@ or +s.
> Offending word is: <@s>
>
> I have attached the file we are testing this on. Basically the child says:
>
> *CHI: the dog is looking at the frog [^c].
> *INV: mmhm.
> *CHI: <um> [@i] the boy is sleeping [^c] but the dog said [^c] the frog
> jumped out [^c].
> *CHI: <cantonese words> [@s].
> *CHI: the end.
>
> We wanted to have total number of words: 21
> Total number of clauses: 4 (we don't want to count <cantonese words> and <the end>)
>
> Thank you so much for helping us out!
>
> Best,
> Yuuko
>
> From: Leonid Spektor <spektor at andrew.cmu.edu>
> Date: Mon, Jun 21, 2010 at 2:35 PM
> Subject: Re: MLU using clauses?
> To: "yuchikoshi at ucdavis.edu" <yt94123 at gmail.com>
>
>
> Yuuko,
>
> As best as I understand what you are trying to do you need to use the same options to exclude code-switched words or fillers in mlu as you do in freq. In this case your mlu command would look like this:
>
> mlu -c"[^c]" -s"<@s>" -s"<@i>" filename.cha
>
> If this does not help, then please email me a small example of the input file and an example of the output you expect to get.
>
> Leonid.
>
>
>
>
>
> On Jun 21, 2010, at 17:00, yuchikoshi at ucdavis.edu wrote:
>
> > Hello. I am trying to count MLU using clauses as units, but not
> > counting code-switched words or fillers.
> >
> > I put in @s for all code-switched words and @i for all fillers.
> >
> > When I do freq +t*CHI -s"<@s>" -s"<@i>" filename*.cha
> > I get the type/token for all words minus the code-switched words and
> > fillers.
> >
> > However, when I do: mlu -c"[^c]" filename.cha
> > it counts my code-switched sentences as extra utterances.
> >
> > Can someone tell me the command to count MLU using clauses as units,
> > but not counting code-switched words or fillers?
> >
> > Thank you.
> >
> > Sincerely,
> > Yuuko Uchikoshi
> >
> > --
> > You received this message because you are subscribed to the Google Groups "Info-CHILDES" group.
> > To post to this group, send email to info-childes at googlegroups.com.
> > To unsubscribe from this group, send email to info-childes+unsubscribe at googlegroups.com.
> > For more options, visit this group at http://groups.google.com/group/info-childes?hl=en.
> >
> >
>
>
>
> <F1017E_test2.cha>
--
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 --------------
An HTML attachment was scrubbed...
URL: <http://listserv.linguistlist.org/pipermail/chibolts/attachments/20100622/67a1e25b/attachment.htm>
More information about the Chibolts
mailing list