Searching
Up one level
Searching
Hi,I'm trying to find out how to search for several annotation values in several eaf files for a specific tier.
For instance, my tier "Gestes" has several annotations and I can give a value for each annotation (so an annotation can be discursive,representational, etc). So what I want to do is to extract automatically for each file all the
values for the tier "gestes". For exemple, I want to have a file that tells me :
eaf file 1 : 1 discursive gesture / 2 representational gestures / 0 interactive gesture<br>
eaf file 2 : 0 discursive gesture / 2 representational gestures / 1 interactive gesture<br>
eaf file 4 : ...<br>
eaf file 5 : ...<br>
eaf file 6 : ...<br>
eaf file 7 : ...<br>
...<br>
eaf file 62 : ...<br>
<br>
For the moment, I have seen that I can have for all the eaf files one value of my tier "geste" so
eaf file 1 : 1 discursive gesture<br>
eaf file 2 : 0 discursive gesture<br>
eaf file 3 : 4 discursive gestures<br>
...<br>
<br>In order to have the other values I must do another search and this means that I'll have a lot of "searching files" to do. I can't figure out how to obtain the results for a file search that gives me all the values of a tier per eaf file.<br>Can you help me please?
Re: Searching
There are several options that you can try:
- multiple file statistics (File->Multiple File Processing->Statistics for Multiple Files). The Annotations tab shows an overview per annotation, but doesn't count per file separately.
- single file statistics (View->Annotation Statistics). The two Annotations tabs show all annotation values for the selected tier. The overviews can in both cases be saved to tab-delimited text file.
- structured multiple file search (Search->Structured Search Multiple eaf...). Load all the files you want to process and in either the second or the third tab select the "Gestes" tier, select "regular expression" as the Mode, type in the expression ".+" in the search field and click the Find button. Right click the results and choose "Save hit statistics". Tick the "Separate hit count per hit value" and save the results. Open the file in a text editor or in a spreadsheet application and check if this is indeed what you need.
The last option is probably best suited for your purpose.
-Han
Re: Re: Searching
Thanks a lot... the last solution is indeed the best! Audrey<br>