| 1 |
<html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 2 |
<title>Strings: To Distributions</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 |
Strings: To Distributions |
| 13 |
</b></font></table></table> |
| 14 |
<p>A command to analyse each selected <a href="Strings.html">Strings</a> object into a <a href="Distributions.html">Distributions</a> object.</p> |
| 15 |
<p>The resulting <b>Distributions</b> will collect the occurrences of every string in the <b>Strings</b> object, and put the number of occurrences in its first and only column.</p> |
| 16 |
<h2>Example</h2> |
| 17 |
<p>We start from the following <b>Strings</b>:</p> |
| 18 |
<code> 6 (number of strings)<br></code> |
| 19 |
<code> "hallo"<br></code> |
| 20 |
<code> "dag allemaal"<br></code> |
| 21 |
<code> "hallo"<br></code> |
| 22 |
<code> "tot morgen"<br></code> |
| 23 |
<code> "hallo"<br></code> |
| 24 |
<code> "tot morgen"<br></code> |
| 25 |
<p>This will give us the following <b>Distributions</b>:</p> |
| 26 |
<code> 1 (number of columns) "" (no column name)<br></code> |
| 27 |
<code> "hallo" 3<br></code> |
| 28 |
<code> "dag allemaal" 1<br></code> |
| 29 |
<code> "tot morgen" 2<br></code> |
| 30 |
<h3>Links to this page</h3> |
| 31 |
<ul> |
| 32 |
<li><a href="OT_learning_2_9__Output_distributions.html">OT learning 2.9. Output distributions</a> |
| 33 |
</ul> |
| 34 |
<hr> |
| 35 |
<address> |
| 36 |
<p>© ppgb 19971025</p> |
| 37 |
</address> |
| 38 |
</body> |
| 39 |
</html> |