| 1 |
#ifndef _Corpus_h_ |
| 2 |
#define _Corpus_h_ |
| 3 |
/* Corpus.h |
| 4 |
* |
| 5 |
* Copyright (C) 2011,2015,2016,2018,2026 Paul Boersma |
| 6 |
* |
| 7 |
* This code is free software; you can redistribute it and/or modify |
| 8 |
* it under the terms of the GNU General Public License as published by |
| 9 |
* the Free Software Foundation; either version 3 of the License, or (at |
| 10 |
* your option) any later version. |
| 11 |
* |
| 12 |
* This code is distributed in the hope that it will be useful, but |
| 13 |
* WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 15 |
* See the GNU General Public License for more details. |
| 16 |
* |
| 17 |
* You should have received a copy of the GNU General Public License |
| 18 |
* along with this work. If not, see <http://www.gnu.org/licenses/>. |
| 19 |
*/ |
| 20 |
|
| 21 |
#include "Table.h" |
| 22 |
#include "TextGrid.h" |
| 23 |
#include "Sound.h" |
| 24 |
|
| 25 |
#include "Corpus_def.h" |
| 26 |
|
| 27 |
autoCorpus Corpus_create (conststring32 folderWithSoundFiles, conststring32 soundFileExtension, |
| 28 |
conststring32 folderWithAnnotationFiles, conststring32 annotationFileExtension); |
| 29 |
|
| 30 |
autoCorpus Corpus_importFromCGN (conststring32 rootFolderPath); |
| 31 |
|
| 32 |
autoTextGrid Corpus_extractTextGrid_number (Corpus me, integer recordingNumber); |
| 33 |
autoSound Corpus_extractSound_number (Corpus me, integer recordingNumber); |
| 34 |
|
| 35 |
autoCorpus Corpus_extractComponents (Corpus me, |
| 36 |
bool comp_a, bool comp_b, bool comp_c, bool comp_d, bool comp_e, |
| 37 |
bool comp_f, bool comp_g, bool comp_h, bool comp_i, bool comp_j, |
| 38 |
bool comp_k, bool comp_l, bool comp_m, bool comp_n, bool comp_o |
| 39 |
); |
| 40 |
|
| 41 |
static conststring32 Corpus_CGN_regionCodes [25] { |
| 42 |
U"regN1a", U"regN1b", U"regN1c", U"regN2a", U"regN2b", |
| 43 |
U"regN2c", U"regN2d", U"regN2e", U"regN2f", U"regN3a", |
| 44 |
U"regN3b", U"regN3c", U"regN3d", U"regN3e", U"regN4a", |
| 45 |
U"regN4b", U"regNx", U"regV1", U"regV2", U"regV3", |
| 46 |
U"regV4", U"regVx", U"regW", U"regZ", U"regX" |
| 47 |
}; |
| 48 |
|
| 49 |
static conststring32 Corpus_CGN_regions_short [25] { |
| 50 |
U"S-Holland", U"N-Holland", U"W-Utrecht", U"Zeeland", U"E-Utrecht", |
| 51 |
U"Guelders", U"Veluwe", U"W-Friesland", U"Polders", U"Achterhoek", |
| 52 |
U"Overijssel", U"Drenthe", U"Groningen", U"Frisia", U"N-Brabant", |
| 53 |
U"E-Limburg", U"Netherlands", U"S-Brabant", U"E-Flanders", U"W-Flanders", |
| 54 |
U"W-Limburg", U"N-Belgium", U"S-Belgium", U"reg_other", U"reg_unknown" |
| 55 |
}; |
| 56 |
|
| 57 |
static conststring32 Corpus_CGN_regions_long [25] { |
| 58 |
U"South Holland (province of Zuid-Holland excl. Goeree-Overflakkee)", |
| 59 |
U"North Holland (province of Noord-Holland excl. West-Friesland)", |
| 60 |
U"West Utrecht (province of Utrecht, Western part incl. the city of Utrecht)", |
| 61 |
U"Zeeland (province of Zeeland, plus Goeree-Overflakkee)", |
| 62 |
U"East Utrecht (province of Utrecht, Eastern part excl. the city of Utrecht)", |
| 63 |
U"Guelders river area (province of Gelderland, Southern part incl. Arnhem en Nijmegen)", |
| 64 |
U"Veluwe (province of Gelderland, Northern part West of the IJssel river)", |
| 65 |
U"West-Friesland (part of the province of Noord-Holland", |
| 66 |
U"Polders (province of Flevoland)", |
| 67 |
U"Achterhoek (province of Gelderland, Eastern part)", |
| 68 |
U"Overijssel (province of Overijssel)", |
| 69 |
U"Drenthe (province of Drenthe)", |
| 70 |
U"Groningen (province of Groningen)", |
| 71 |
U"Frisia (province of Fryslân)", |
| 72 |
U"North Brabant (province of Noord-Brabant", |
| 73 |
U"East Limburg (Dutch province of Limburg)", |
| 74 |
U"unknown region in the Netherlands", |
| 75 |
U"South Brabant (provinces of Antwerpen and Brabant (Northern part))", |
| 76 |
U"East Flanders (province of Oost-Vlaanderen)", |
| 77 |
U"West Flanders (province of West-Vlaanderen", |
| 78 |
U"West Limburg (Belgian province of Limburg)", |
| 79 |
U"unknown region in North Belgium", |
| 80 |
U"South Belgium (Wallonia)", |
| 81 |
U"region outside Belgium and the Netherlands", |
| 82 |
U"unknown region" |
| 83 |
}; |
| 84 |
|
| 85 |
autoCorpus Corpus_extractEducationRegions (Corpus me, |
| 86 |
bool sHolland, bool nHolland, bool wUtrecht, bool zeeland, bool eUtrecht, |
| 87 |
bool guelders, bool veluwe, bool wFriesland, bool polders, bool achterhoek, |
| 88 |
bool overijssel, bool drenthe, bool groningen, bool frisia, bool nBrabant, |
| 89 |
bool eLimburg, bool netherlands, bool sBrabant, bool eFlanders, bool wFlanders, |
| 90 |
bool wLimburg, bool nBelgium, bool sBelgium, bool reg_other, bool reg_unknown |
| 91 |
); |
| 92 |
|
| 93 |
#endif |
| 94 |
/* End of file Corpus.h */ |