Hi everyone,
Sorry for the late reply about this matter. I've now created a working example of how to create a corpus. Here are the instructions:
1. Unzip the attached zip file. It includes a metadata table, and three corpus files:
metadata file: animal_metadata.tsv
corpus files: cat_1.txt, cat_2.txt, dog_1.txt
I've also included a copy of the resulting corpus database that you should be able to recreate:
metadata_demo.db
2. Open AntConc and navigate to the File Menu->Corpus Manager->Raw files corpus building
3. Name your new corpus as "metadata_demo" by typing the name into the "Corpus Name" entry box.
4. Drag and drop the corpus files into the "Corpus Files" list and drag and drop the metadata file into the "Metatable Table(s)" list. You can also use the buttons if you want.
5. Click "Create" to create your new corpus.
6. In the KWIC tool, search for "the". You should find 6 hits, with 4 hits in the 'cats' files and 2 hits in the 'dog' file.
7. Now click on "Adv Search", activate the "SQL Search option" and enter the following as a SQL search:
["animal_metadata", "animal = 'cat'", "doc_id"]
This advanced search will effectively filter all search results to ensure that the file has a "cat" label in the metadata table "animals" column.
8. Apply the settings, and then in the KWIC tool, search for "the" again. You should find that the results are now filtered for only files that are about "cats".
Let me know if this demo works well. If it is fine, I'll consider making a video demo.
Regards,
Laurence.
###############################################################
Laurence ANTHONY, Ph.D.
Professor of Applied LinguisticsFaculty of Science and Engineering
Waseda University
3-4-1 Okubo, Shinjuku-ku, Tokyo 169-8555, Japan
E-mail:
antho...@gmail.comWWW:
http://www.laurenceanthony.net/###############################################################