Unifying two files into one

조회수 10회
읽지 않은 첫 메시지로 건너뛰기

Remei González Manzanero

읽지 않음,
2023. 3. 8. 오전 4:18:3623. 3. 8.
받는사람 chibolts
Dear all,

We are trying to unify two files into one. In our corpora, we have two different files for each text, with the same speaker tiers but with different dependent tiers in each of them. Although we can carry out two analysis, we would like to unify these two versions of each text into only one.

We tried some commands, such as CHSTRING doing replacements, but we don't seem to find the right one. In other words, we need to integrate the dependent tiers of one file into the other, resulting in a file containing the dependent tiers of both files.

Thank you in advance for your help,
--
Remei González Manzanero

Leonid Spektor

읽지 않음,
2023. 3. 8. 오후 2:06:0923. 3. 8.
받는사람 chib...@googlegroups.com
Remei,

CLAN does not have a command specifically dedicated to merging files. But there is RELY command that will allow adding one file's dependent tiers to another file. The speaker tiers have to be identical and all present in both files. If there is the same dependent tier in both files then RELY will insert message " ** Duplicate tier found around lines: " in the output file. The last limitation is that you would have to do this merging just two files at the time.

 Here is an example of the command line:

rely +a file1.cha file2.cha +t% +t@


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/6b8895e0-d47a-4afb-a3e6-bac1850b15efn%40googlegroups.com.

Remei González Manzanero

읽지 않음,
2023. 3. 10. 오전 8:25:3423. 3. 10.
받는사람 chibolts
Dear Leonid, 
Thank you for your fast reply. We are going to try this and see how it works. 
Thank you and best regards, 
--
Remei

Remei González Manzanero

읽지 않음,
2023. 3. 23. 오전 6:07:4323. 3. 23.
받는사람 chibolts

Dear Leonid and dear all,
I retake this conversation. The command was very useful. Nevertheless, we had another issue: In some our files we have different codes in the same dependent tier, and not in two different dependent tiers. In any case, the message indicating that there is a duplicate tier saves a lot of time, although we were wondering whether there is an easier way to include or copy codes from a dependent tier in a file to the very same dependent tier in another file.
Has anyone find a way to do so?
Many thanks in advance,
--
Remei 

Leonid Spektor

읽지 않음,
2023. 3. 23. 오전 8:39:1123. 3. 23.
받는사람 chib...@googlegroups.com
Hi Remei,

It would help if you could send to me directly a small example of two files that you want to merge that both have the same name dependent tiers that you want to combine into one same name dependent tier in a merged output file.

My email is spe...@andrew.cmu.edu.


Leonid.


전체답장
작성자에게 답글
전달
새 메시지 0개