Debian Codegraph @

docs/manual/OT_learning_2_2__Inside_the_grammar.html

raw
1 <html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
2 <title>OT learning 2.2. Inside the grammar</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 OT learning 2.2. Inside the grammar
13 </b></font></table></table>
14 <p>You can save an <a href="OTGrammar.html">OTGrammar</a> grammar as a text file by choosing <a href="Save_as_text_file___.html">Save as text file...</a> from the <a href="Save_menu.html">Save menu</a> of the Objects window. For the N<font size=-1>O</font>C<font size=-1>ODA</font> example, the contents of the file will look like:</p>
15 <code> File type = "ooTextFile"<br></code>
16 <code> Object class = "OTGrammar 2"<br></code>
17 <code> decisionStrategy = &lt;OptimalityTheory&gt;<br></code>
18 <code> leak = 0<br></code>
19 <code> 2 constraints<br></code>
20 <code> constraint [1]: "N\s{O}C\s{ODA}" 100 100 1 ! NOCODA<br></code>
21 <code> constraint [2]: "P\s{ARSE}" 90 90 1 ! PARSE<br></code>
22 <code> <br></code>
23 <code> 0 fixed rankings<br></code>
24 <code> <br></code>
25 <code> 2 tableaus<br></code>
26 <code> input [1]: "pat" 2<br></code>
27 <code> candidate [1]: "pa" 0 1<br></code>
28 <code> candidate [2]: "pat" 1 0<br></code>
29 <code> input [2]: "pa" 1<br></code>
30 <code> candidate [1]: "pa" 0 0<br></code>
31 <p>To understand more about this data structure, consult the <a href="OTGrammar.html">OTGrammar</a> class description or click <b>Inspect</b> after selecting the OTGrammar object. The &#8220;<code><font size=+1>\s{...}</font></code>&#8221; braces ensure that the constraint names show up with their traditional small capitals (see <a href="Text_styles.html">Text styles</a>).</p>
32 <p>You can read this text file into Praat again with <a href="Read_from_file___.html">Read from file...</a> from the <b>Open</b> menu in the Objects window.</p>
33 <h3>Links to this page</h3>
34 <ul>
35 <li><a href="OT_learning.html">OT learning</a>
36 <li><a href="OT_learning_2__The_grammar.html">OT learning 2. The grammar</a>
37 </ul>
38 <hr>
39 <address>
40 <p>© ppgb 20110129</p>
41 </address>
42 </body>
43 </html>