CHSTRING
Brian MacWhinney
macw at cmu.edu
Thu Jun 11 11:35:17 UTC 2009
Dear Annabelle,
I assume that your basic CHSTRING command is something like this:
chstring +s" teddy bear " " teddy+bear " filename.cha +1 -w
This should work within lines, but when you hit the carriage return,
that blocks it. To deal with this, I use the LONGTIER program first.
LONGTIER removes the carriage returns on main tiers and puts the whole
sentence on one line. Whenever doing data cleaning stuff like this,
it is a useful first step. The +d switch in CHSTRING is supposed to
leave these long lines in place, but it doesn't seem to do that. So,
that means that you will have to keep running LONGTIER before each
change. I use BBEdit to makes these changes, although even then I run
LONGTIER first. However, the advantage in BBEdit is that it doesn't
undo the LONGTIER format. If you are going to stick with CHSTRING,
since it is otherwise working, just remember to keep using LONGTIER.
To avoid getting too many file generations from all of this, you can
use the +1 switch, but when you use that, make sure that you copy your
whole folder on occasion, in case you make a mistake.
Good luck.
-- Brian MacWhinney
On Jun 11, 2009, at 12:14 PM, Annabelle David wrote:
>
> Hi everyone
>
> I am hoping someone can help me. I have been changing a number of
> words using the chstring command. I am mostly turning words that were
> originally transcribed as two items into one compound with the + sign
> in between. So for example, teddy bear becomes teddy+bear. However,
> chstring does not seem to work when the words are on separate line.
> For example:
> *MOT: do you want to play with your doll or your teddy
> bear today?
>
> So I am left with a lot of cases to change manually. Is there a switch
> I could use to avoid the manual changes? I have tried several but with
> no success.
>
> Thanks in advance
>
> Annabelle
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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/20090611/44d6fa6d/attachment.htm>
More information about the Chibolts
mailing list