| 1 | <html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 2 | <title>OTGrammar</title> |
| 3 | <style> |
| 4 | td { padding-left: 5pt; padding-right: 5pt; } |
| 5 | th { padding-left: 5pt; padding-right: 5pt; } |
| 6 | code { white-space: pre-wrap; } |
| 7 | dd { white-space: pre-wrap; } |
| 8 | </style> |
| 9 | </head><body bgcolor="#FFFFFF"> |
| 10 | |
| 11 | <table border=0 cellpadding=0 cellspacing=0><tr><td bgcolor="#CCCC00"><table border=4 cellpadding=9><tr><td align=middle bgcolor="#000000"><font face="Palatino,Times" size=6 color="#999900"><b> |
| 12 | OTGrammar |
| 13 | </b></font></table></table> |
| 14 | <p>One of the <a href="Types_of_objects.html">types of objects</a> in Praat. See the <a href="OT_learning.html">OT learning</a> tutorial.</p> |
| 15 | <h2>Inside an OTGrammar</h2> |
| 16 | <p>With <a href="Inspect.html">Inspect</a>, you will see the following attributes:</p> |
| 17 | <dl> |
| 18 | <dt><i>constraints</i> |
| 19 | <dd>a list of constraints. Each constraint contains the following attributes:</dd> |
| 20 | <dt> <i>name</i> |
| 21 | <dd> the fixed name of the constraint, for instance "P<font size=-1>ARSE</font>".</dd> |
| 22 | <dt> <i>ranking</i> |
| 23 | <dd> the continuous ranking value; will change during learning.</dd> |
| 24 | <dt> <i>disharmony</i> |
| 25 | <dd> the effective ranking value during stochastic evaluation; with a non-zero evaluation noise, this will be different from <i>ranking</i>.</dd> |
| 26 | <dt><i>fixedRankings</i> |
| 27 | <dd>an often empty list of locally ranked pairs of constraints. Each local-ranking pair contains the following attributes:</dd> |
| 28 | <dt> <i>higher</i> |
| 29 | <dd> the index of the universally higher-ranked of the two constraints, a number between 1 and the number of constraints.</dd> |
| 30 | <dt> <i>lower</i> |
| 31 | <dd> the index of the universally lower-ranked of the two constraints.</dd> |
| 32 | <dt><i>tableaus</i> |
| 33 | <dd>a list of tableaus. Each tableau contains the following attributes:</dd> |
| 34 | <dt> <i>input</i> |
| 35 | <dd> the input string of the tableau. For production grammaras, the underlying form of the utterance, for example |an+pa| or |bɹɪŋ + <font size=-1>PAST</font>|.</dd> |
| 36 | <dt> <i>candidates</i> |
| 37 | <dd> a list of output candidates. Each output candidate consists of:</dd> |
| 38 | <dt> <i>output</i> |
| 39 | <dd> the output string of the tableau. In two-level phonology: the surface form of the utterance, for example [anpa] or [ampa] or [bɹɔːt] or [bɹæŋ]. In multi-level phonology: the combination of phonological surface and phonetic results, for example /anpa/[anpa] or /ampa/[ampa] or /bɹɔːt/[bɹɔːt] or /bɹæŋ/[bɹæŋ].</dd> |
| 40 | <dt> <i>marks</i> |
| 41 | <dd> a list of the number of violations of each constraint for this output form. If there are 13 constraints, this list will contain 13 integer numbers for each candidate.</dd> |
| 42 | </dl> |
| 43 | <h2>OTGrammar creation</h2> |
| 44 | <p>You can easily create some <b>OTGrammar</b> examples from the <a href="New_menu.html">New menu</a>, or type your own grammars into a text file and read the file into Praat. See the <a href="OT_learning.html">OT learning</a> tutorial.</p> |
| 45 | <h2>OTGrammar actions</h2> |
| 46 | <p>You can perform the following actions on selected <b>OTGrammar</b> objects:</p> |
| 47 | <dl> |
| 48 | <dd style="position:relative;padding-left:1em;text-indent:-2em"><a href="OTGrammar__Generate_inputs___.html">OTGrammar: Generate inputs...</a></dd> |
| 49 | <dd style="position:relative;padding-left:1em;text-indent:-2em"><a href="OTGrammar__Input_to_output___.html">OTGrammar: Input to output...</a></dd> |
| 50 | <dd style="position:relative;padding-left:1em;text-indent:-2em"><a href="OTGrammar__Input_to_outputs___.html">OTGrammar: Input to outputs...</a> (compute the output distribution for a given input)</dd> |
| 51 | <dd style="position:relative;padding-left:1em;text-indent:-2em"><a href="OTGrammar__To_output_Distributions___.html">OTGrammar: To output Distributions...</a></dd> |
| 52 | <dd style="position:relative;padding-left:1em;text-indent:-2em"><a href="OTGrammar___Strings__Inputs_to_outputs___.html">OTGrammar & Strings: Inputs to outputs...</a></dd> |
| 53 | <dd style="position:relative;padding-left:1em;text-indent:-2em"><a href="OTGrammar__Learn_one___.html">OTGrammar: Learn one...</a></dd> |
| 54 | <dd style="position:relative;padding-left:1em;text-indent:-2em"><a href="OTGrammar___2_Strings__Learn___.html">OTGrammar & 2 Strings: Learn...</a></dd> |
| 55 | </dl> |
| 56 | <p>You can view an <b>OTGrammar</b> in an <a href="OTGrammarEditor.html">OTGrammarEditor</a>.</p> |
| 57 | <h3>Links to this page</h3> |
| 58 | <ul> |
| 59 | <li><a href="Create_NoCoda_grammar.html">Create NoCoda grammar</a> |
| 60 | <li><a href="Create_tongue-root_grammar___.html">Create tongue-root grammar...</a> |
| 61 | <li><a href="OT_learning_1__Kinds_of_grammars.html">OT learning 1. Kinds of grammars</a> |
| 62 | <li><a href="OT_learning_2_1__Viewing_a_grammar.html">OT learning 2.1. Viewing a grammar</a> |
| 63 | <li><a href="OT_learning_2_2__Inside_the_grammar.html">OT learning 2.2. Inside the grammar</a> |
| 64 | <li><a href="OT_learning_2_7__Tableau_pictures.html">OT learning 2.7. Tableau pictures</a> |
| 65 | <li><a href="OT_learning_2_9__Output_distributions.html">OT learning 2.9. Output distributions</a> |
| 66 | <li><a href="OT_learning_3_1__Data_from_a_pair_distribution.html">OT learning 3.1. Data from a pair distribution</a> |
| 67 | <li><a href="OT_learning_3_2__Data_from_another_grammar.html">OT learning 3.2. Data from another grammar</a> |
| 68 | <li><a href="OT_learning_4__Learning_an_ordinal_grammar.html">OT learning 4. Learning an ordinal grammar</a> |
| 69 | <li><a href="OT_learning_6__Shortcut_to_grammar_learning.html">OT learning 6. Shortcut to grammar learning</a> |
| 70 | <li><a href="OT_learning_7__Learning_from_overt_forms.html">OT learning 7. Learning from overt forms</a> |
| 71 | <li><a href="OTGrammar___PairDistribution__Find_positive_weights___.html">OTGrammar & PairDistribution: Find positive weights...</a> |
| 72 | <li><a href="Robust_Interpretive_Parsing.html">Robust Interpretive Parsing</a> |
| 73 | </ul> |
| 74 | <hr> |
| 75 | <address> |
| 76 | <p>© ppgb 20141001</p> |
| 77 | </address> |
| 78 | </body> |
| 79 | </html> |