| 1 | /* OTGrammar_enums.h |
| 2 | * |
| 3 | * Copyright (C) 2006-2011,2013,2014,2015,2017,2025 Paul Boersma |
| 4 | * |
| 5 | * This code is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation; either version 3 of the License, or (at |
| 8 | * your option) any later version. |
| 9 | * |
| 10 | * This code is distributed in the hope that it will be useful, but |
| 11 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 13 | * See the GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this work. If not, see <http://www.gnu.org/licenses/>. |
| 17 | */ |
| 18 | |
| 19 | enums_begin (kOTGrammar_decisionStrategy, 0) |
| 20 | enums_add (kOTGrammar_decisionStrategy, 0, OPTIMALITY_THEORY, U"OptimalityTheory") |
| 21 | enums_add (kOTGrammar_decisionStrategy, 1, HARMONIC_GRAMMAR, U"HarmonicGrammar") |
| 22 | enums_add (kOTGrammar_decisionStrategy, 2, LINEAR_OT, U"LinearOT") |
| 23 | enums_add (kOTGrammar_decisionStrategy, 3, EXPONENTIAL_HG, U"ExponentialHG") |
| 24 | enums_add (kOTGrammar_decisionStrategy, 4, MAXIMUM_ENTROPY, U"MaximumEntropy") |
| 25 | enums_add (kOTGrammar_decisionStrategy, 5, POSITIVE_HG, U"PositiveHG") |
| 26 | enums_add (kOTGrammar_decisionStrategy, 6, EXPONENTIAL_MAXIMUM_ENTROPY, U"ExponentialMaximumEntropy") |
| 27 | enums_add (kOTGrammar_decisionStrategy, 7, NONNEGATIVE_MAXIMUM_ENTROPY, U"NonNegativeMaximumEntropy") |
| 28 | /* |
| 29 | As this enumerated type occurs in data, you should add new decision strategies only at the end. |
| 30 | */ |
| 31 | enums_end (kOTGrammar_decisionStrategy, 7, OPTIMALITY_THEORY) |
| 32 | |
| 33 | enums_begin (kOTGrammar_rerankingStrategy, 0) |
| 34 | enums_add (kOTGrammar_rerankingStrategy, 0, DEMOTION_ONLY, U"Demotion only") |
| 35 | enums_add (kOTGrammar_rerankingStrategy, 1, SYMMETRIC_ONE, U"Symmetric one") |
| 36 | enums_add (kOTGrammar_rerankingStrategy, 2, SYMMETRIC_ALL, U"Symmetric all") |
| 37 | enums_add (kOTGrammar_rerankingStrategy, 3, SYMMETRIC_ALL_SKIPPABLE, U"Symmetric all (skippable)") |
| 38 | enums_add (kOTGrammar_rerankingStrategy, 4, WEIGHTED_UNCANCELLED, U"Weighted uncancelled") |
| 39 | enums_add (kOTGrammar_rerankingStrategy, 5, WEIGHTED_ALL, U"Weighted all") |
| 40 | enums_add (kOTGrammar_rerankingStrategy, 6, EDCD, U"EDCD") |
| 41 | enums_add (kOTGrammar_rerankingStrategy, 7, EDCD_WITH_VACATION, U"EDCD with vacation") |
| 42 | enums_add (kOTGrammar_rerankingStrategy, 8, WEIGHTED_ALL_UP_HIGHEST_DOWN, U"Weighted all up, highest down") |
| 43 | enums_add (kOTGrammar_rerankingStrategy, 9, WEIGHTED_ALL_UP_HIGHEST_DOWN_2012, U"Weighted all up, highest down (2012)") |
| 44 | enums_add (kOTGrammar_rerankingStrategy, 10, WEIGHTED_ALL_UP_HIGH_DOWN, U"Weighted all up, high down") |
| 45 | enums_add (kOTGrammar_rerankingStrategy, 11, WEIGHTED_ALL_UP_HIGH_DOWN_2012, U"Weighted all up, high down (2012)") |
| 46 | enums_end (kOTGrammar_rerankingStrategy, 11, SYMMETRIC_ALL) |
| 47 | |
| 48 | enums_begin (kOTGrammar_createTongueRootGrammar_constraintSet, 1) |
| 49 | enums_add (kOTGrammar_createTongueRootGrammar_constraintSet, 1, FIVE, U"Five") |
| 50 | enums_add (kOTGrammar_createTongueRootGrammar_constraintSet, 2, NINE, U"Nine") |
| 51 | enums_end (kOTGrammar_createTongueRootGrammar_constraintSet, 2, FIVE) |
| 52 | |
| 53 | enums_begin (kOTGrammar_createTongueRootGrammar_ranking, 1) |
| 54 | enums_add (kOTGrammar_createTongueRootGrammar_ranking, 1, EQUAL, U"equal") |
| 55 | enums_add (kOTGrammar_createTongueRootGrammar_ranking, 2, RANDOM, U"random") |
| 56 | enums_add (kOTGrammar_createTongueRootGrammar_ranking, 3, INFANT, U"infant") |
| 57 | enums_add (kOTGrammar_createTongueRootGrammar_ranking, 4, WOLOF, U"Wolof") |
| 58 | enums_end (kOTGrammar_createTongueRootGrammar_ranking, 4, INFANT) |
| 59 | |
| 60 | enums_begin (kOTGrammar_createMetricsGrammar_initialRanking, 1) |
| 61 | enums_add (kOTGrammar_createMetricsGrammar_initialRanking, 1, EQUAL, U"equal") |
| 62 | enums_add (kOTGrammar_createMetricsGrammar_initialRanking, 2, FOOT_FORM_HIGH, U"foot form high") |
| 63 | enums_add (kOTGrammar_createMetricsGrammar_initialRanking, 3, WSP_HIGH, U"WSP high") |
| 64 | enums_end (kOTGrammar_createMetricsGrammar_initialRanking, 3, EQUAL) |
| 65 | |
| 66 | /* End of file OTGrammar_enums.h */ |