OTGrammar_enums.h 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /* OTGrammar_enums.h
  2. *
  3. * Copyright (C) 2006-2011,2013,2014,2015,2017 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 2 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. enums_begin (kOTGrammar_decisionStrategy, 0)
  19. enums_add (kOTGrammar_decisionStrategy, 0, OPTIMALITY_THEORY, U"OptimalityTheory")
  20. enums_add (kOTGrammar_decisionStrategy, 1, HARMONIC_GRAMMAR, U"HarmonicGrammar")
  21. enums_add (kOTGrammar_decisionStrategy, 2, LINEAR_OT, U"LinearOT")
  22. enums_add (kOTGrammar_decisionStrategy, 3, EXPONENTIAL_HG, U"ExponentialHG")
  23. enums_add (kOTGrammar_decisionStrategy, 4, MAXIMUM_ENTROPY, U"MaximumEntropy")
  24. enums_add (kOTGrammar_decisionStrategy, 5, POSITIVE_HG, U"PositiveHG")
  25. enums_add (kOTGrammar_decisionStrategy, 6, EXPONENTIAL_MAXIMUM_ENTROPY, U"ExponentialMaximumEntropy")
  26. /*
  27. As this enumerated type occurs in data, you should add new decision strategies only at the end.
  28. */
  29. enums_end (kOTGrammar_decisionStrategy, 6, OPTIMALITY_THEORY)
  30. enums_begin (kOTGrammar_rerankingStrategy, 0)
  31. enums_add (kOTGrammar_rerankingStrategy, 0, DEMOTION_ONLY, U"Demotion only")
  32. enums_add (kOTGrammar_rerankingStrategy, 1, SYMMETRIC_ONE, U"Symmetric one")
  33. enums_add (kOTGrammar_rerankingStrategy, 2, SYMMETRIC_ALL, U"Symmetric all")
  34. enums_add (kOTGrammar_rerankingStrategy, 3, SYMMETRIC_ALL_SKIPPABLE, U"Symmetric all (skippable)")
  35. enums_add (kOTGrammar_rerankingStrategy, 4, WEIGHTED_UNCANCELLED, U"Weighted uncancelled")
  36. enums_add (kOTGrammar_rerankingStrategy, 5, WEIGHTED_ALL, U"Weighted all")
  37. enums_add (kOTGrammar_rerankingStrategy, 6, EDCD, U"EDCD")
  38. enums_add (kOTGrammar_rerankingStrategy, 7, EDCD_WITH_VACATION, U"EDCD with vacation")
  39. enums_add (kOTGrammar_rerankingStrategy, 8, WEIGHTED_ALL_UP_HIGHEST_DOWN, U"Weighted all up, highest down")
  40. enums_add (kOTGrammar_rerankingStrategy, 9, WEIGHTED_ALL_UP_HIGHEST_DOWN_2012, U"Weighted all up, highest down (2012)")
  41. enums_add (kOTGrammar_rerankingStrategy, 10, WEIGHTED_ALL_UP_HIGH_DOWN, U"Weighted all up, high down")
  42. enums_add (kOTGrammar_rerankingStrategy, 11, WEIGHTED_ALL_UP_HIGH_DOWN_2012, U"Weighted all up, high down (2012)")
  43. enums_end (kOTGrammar_rerankingStrategy, 11, SYMMETRIC_ALL)
  44. enums_begin (kOTGrammar_createTongueRootGrammar_constraintSet, 1)
  45. enums_add (kOTGrammar_createTongueRootGrammar_constraintSet, 1, FIVE, U"Five")
  46. enums_add (kOTGrammar_createTongueRootGrammar_constraintSet, 2, NINE, U"Nine")
  47. enums_end (kOTGrammar_createTongueRootGrammar_constraintSet, 2, FIVE)
  48. enums_begin (kOTGrammar_createTongueRootGrammar_ranking, 1)
  49. enums_add (kOTGrammar_createTongueRootGrammar_ranking, 1, EQUAL, U"equal")
  50. enums_add (kOTGrammar_createTongueRootGrammar_ranking, 2, RANDOM, U"random")
  51. enums_add (kOTGrammar_createTongueRootGrammar_ranking, 3, INFANT, U"infant")
  52. enums_add (kOTGrammar_createTongueRootGrammar_ranking, 4, WOLOF, U"Wolof")
  53. enums_end (kOTGrammar_createTongueRootGrammar_ranking, 4, INFANT)
  54. enums_begin (kOTGrammar_createMetricsGrammar_initialRanking, 1)
  55. enums_add (kOTGrammar_createMetricsGrammar_initialRanking, 1, EQUAL, U"equal")
  56. enums_add (kOTGrammar_createMetricsGrammar_initialRanking, 2, FOOT_FORM_HIGH, U"foot form high")
  57. enums_add (kOTGrammar_createMetricsGrammar_initialRanking, 3, WSP_HIGH, U"WSP high")
  58. enums_end (kOTGrammar_createMetricsGrammar_initialRanking, 3, EQUAL)
  59. /* End of file OTGrammar_enums.h */