asclite.html 14.9 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431
<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:root@localhost" />
</head>

<body>



<ul id="index">
  <li><a href="#NAME">NAME</a></li>
  <li><a href="#SYNOPSIS">SYNOPSIS</a></li>
  <li><a href="#DESCRIPTION">DESCRIPTION</a></li>
  <li><a href="#USAGE">USAGE</a></li>
  <li><a href="#OPTIONS">OPTIONS</a></li>
  <li><a href="#BUGS">BUGS</a></li>
  <li><a href="#NOTES">NOTES</a>
    <ul>
      <li><a href="#Cost-Models">Cost Models</a>
        <ul>
          <li><a href="#Word-base-cost">Word-base cost</a></li>
          <li><a href="#Time-base-cost">Time-base cost</a></li>
        </ul>
      </li>
      <li><a href="#Filtering">Filtering</a>
        <ul>
          <li><a href="#UEM-and-References">UEM and References</a></li>
          <li><a href="#UEM-and-Hypotheses">UEM and Hypotheses</a></li>
        </ul>
      </li>
      <li><a href="#Publications">Publications</a></li>
    </ul>
  </li>
  <li><a href="#AUTHORS">AUTHORS</a></li>
  <li><a href="#COPYRIGHT">COPYRIGHT</a></li>
  <li><a href="#DISCLAIMER">DISCLAIMER</a></li>
  <li><a href="#POD-ERRORS">POD ERRORS</a></li>
</ul>

<h1 id="NAME">NAME</h1>

<p>asclite - Multi-dimensional alignment program.</p>

<h1 id="SYNOPSIS">SYNOPSIS</h1>

<pre><code>        asclite &lt;Input Options&gt; [&lt;Alignment Options&gt;] [&lt;Output Options&gt;] [Scoring Report Options&gt;]</code></pre>

<h1 id="DESCRIPTION">DESCRIPTION</h1>

<p>Asclite is multi-dimensional extension of the Dynamic Programming solution to Levenshtein Edit Distance calculations capable of evaluating STT and SASTT systems during periods of overlapping, simultaneous speech. It handles different input formats: RTTM, CTM, STM, and TRN and generates several data and statistical formats: SGML, SUM, RSUM, and Alignment Information. STDOUT is used to generate reports and STDERR is used for logging purposes. The alignment information is considered as a log information.</p>

<h1 id="USAGE">USAGE</h1>

<p>Examples:</p>

<pre><code>        asclite -r example.rttm rttm -h example2.rttm rttm Example -adaptive-cost -f 6 -o sgml
        asclite -r example.rttm rttm -h example2.rttm rttm Example -f 0 -o sum stdout</code></pre>

<h1 id="OPTIONS">OPTIONS</h1>

<dl>

<dt id="Input-Options"><b>Input Options:</b></dt>
<dd>

<dl>

<dt id="r-reffilename-rttm-stm-trn"><b>-r &lt;reffilename</b> [ rttm | stm | trn ]&gt;</dt>
<dd>

<p>Defines the reference file and its format. The default format is &#39;trn&#39;.</p>

</dd>
<dt id="h-hypfilename-ctm-rttm-trn-title"><b>-h &lt;hypfilename</b> [ ctm | rttm | trn ] [ &lt;title&gt; ]&gt;</dt>
<dd>

<p>Defines the hypothesis file, its format, and the &#39;title&#39; used for reports. The default title is the filename. This option may be used more than once. The default format is &#39;trn&#39;.</p>

</dd>
<dt id="i-ids"><b>-i &lt;ids</b>&gt;</dt>
<dd>

<p>Set the utterance id type (for trn mode only)</p>

</dd>
</dl>

</dd>
<dt id="Filter-Options"><b>Filter Options:</b></dt>
<dd>

<dl>

<dt id="spkrautooverlap-ref-hyp-both"><b>-spkrautooverlap [ ref | hyp | both ]</b></dt>
<dd>

<p>Check if the speakers are self-overlaping or not.</p>

</dd>
<dt id="uem-uemfilename-ref-hyp-both"><b>-uem &lt;uemfilename</b> [ ref | hyp | both ]&gt;</dt>
<dd>

<p>Apply the UEM rules. The default value is &#39;both&#39;.</p>

</dd>
<dt id="noisg"><b>-noisg</b></dt>
<dd>

<p>Do not creates the Inter Segment Gaps.</p>

</dd>
</dl>

</dd>
<dt id="Alignment-Options"><b>Alignment Options:</b></dt>
<dd>

<dl>

<dt id="s"><b>-s</b></dt>
<dd>

<p>Do case-sensitive alignments.</p>

</dd>
<dt id="F"><b>-F</b></dt>
<dd>

<p>Score fragments as correct.</p>

</dd>
<dt id="D-ref-hyp-both"><b>-D [ ref | hyp | both ]</b></dt>
<dd>

<p>Score optional tokens as correct based on the flag&#39;s value: hyp: a hypothesis word is optional and the work is deleted, ref: a reference word is optional and the word is inserted, both: both &#39;ref&#39; and &#39;hyp&#39; are in effect. The default value is &#39;both&#39;.</p>

</dd>
<dt id="time-base-cost"><b>-time-base-cost</b></dt>
<dd>

<p>Used the time base cost model for the alignment (Note that only ctm and rttm format are supported for this mode).</p>

</dd>
<dt id="time-prune-time_threshold"><b>-time-prune &lt;time_threshold</b>&gt;</dt>
<dd>

<p>Activates the time pruning optimization with allowed error of &lt;time_threshold&gt; millisecond(s).</p>

</dd>
<dt id="word-time-align-time_threshold"><b>-word-time-align &lt;time_threshold</b>&gt;</dt>
<dd>

<p>Activates the time optimization for word alignment with allowed error of &lt;time_threshold&gt; millisecond(s).</p>

</dd>
<dt id="spkr-align-mdm_spkr_align_file_csv"><b>-spkr-align &lt;mdm_spkr_align_file_csv</b>&gt;</dt>
<dd>

<p>Activates the speaker alignment optimization regarding the &lt;mdm_spkr_align_file_csv&gt; csv file.</p>

</dd>
<dt id="adaptive-cost"><b>-adaptive-cost</b></dt>
<dd>

<p>Activates the adaptive cost based on the time.</p>

</dd>
<dt id="wordalign-cost"><b>-wordalign-cost</b></dt>
<dd>

<p>Activates the word align cost based on the edit distance.</p>

</dd>
<dt id="overlap-limit-max_nb_of_overlaping-speaker"><b>-overlap-limit &lt;max_nb_of_overlaping speaker</b>&gt;</dt>
<dd>

<p>Change the maximum number of overlaping speaker (default: 1).</p>

</dd>
<dt id="memory-compression-block_KB"><b>-memory-compression &lt;block_KB</b>&gt;</dt>
<dd>

<p>Set the memory compression with compressed &lt;block_KB&gt; KB block (default: off / recommanded: 64).</p>

</dd>
<dt id="force-memory-compression"><b>-force-memory-compression</b></dt>
<dd>

<p>Force the memory compression.</p>

</dd>
<dt id="memory-limit-max_GB"><b>-memory-limit &lt;max_GB</b>&gt;</dt>
<dd>

<p>Set the maximum memory allocation in GB for the LCM (default: 2.0). If &lt;max_GB&gt; is smaller then 2 GB then every segmentation above &lt;max_GB&gt; will not be aligned. If &lt;max_GB&gt; is bigger 2 GB and memory compression has been activated then every segmentation above &lt;max_GB&gt; will not be aligned and every segmentation between 2 GB and &lt;max_GB&gt; will be aligned. If &lt;max_GB&gt; is bigger 2 GB and memory compression has not been activated every segmentation above 2 GB will not be aligned.</p>

</dd>
<dt id="difficulty-limit-max_GB"><b>-difficulty-limit &lt;max_GB</b>&gt;</dt>
<dd>

<p>Set the maximum difficulty limit in GB for the LCM (disabled). Every segmentation above this limit will not be aligned.</p>

</dd>
<dt id="min-difficulty-limit-max_GB"><b>-min-difficulty-limit &lt;max_GB</b>&gt;</dt>
<dd>

<p>Set the min difficulty limit in GB for the LCM (disabled). Every segmentation below this limit will not be aligned.</p>

</dd>
<dt id="generic-cost"><b>-generic-cost</b></dt>
<dd>

<p>This options trigger the generic cost model computing the results disregarding the notion of hyp and ref, the results will be a multiple-alignment. The hypotheses files are the only input. There is only one output sgml.</p>

</dd>
</dl>

</dd>
<dt id="Output-Options"><b>Output Options:</b></dt>
<dd>

<dl>

<dt id="O-output_dir"><b>-O &lt;output_dir</b>&gt;</dt>
<dd>

<p>Writes all output files into output_dir. The default directory is the hypfile&#39;s.</p>

</dd>
<dt id="f-level"><b>-f &lt;level</b>&gt;</dt>
<dd>

<p>Defines feedback mode. The default value is 4. Silent: 0. Alignment: 6. Alignment only: 7.</p>

</dd>
<dt id="l-width"><b>-l &lt;width</b>&gt;</dt>
<dd>

<p>Defines the line width used for reports.</p>

</dd>
</dl>

</dd>
<dt id="Scoring-Report-Options"><b>Scoring Report Options:</b></dt>
<dd>

<dl>

<dt id="o-sum-rsum-sgml-sdtout"><b>-o [ sum | rsum | sgml ] [ sdtout ]</b></dt>
<dd>

<p>Defines the output reports. The default value is &#39;sum stdout&#39;.</p>

</dd>
</dl>

</dd>
<dt id="Other-options"><b>Other options:</b></dt>
<dd>

<dl>

<dt id="h---help"><b>-h</b>, <b>--help</b></dt>
<dd>

<p>Display the help.</p>

</dd>
</dl>

</dd>
</dl>

<h1 id="BUGS">BUGS</h1>

<p>No known bugs.</p>

<h1 id="NOTES">NOTES</h1>

<h2 id="Cost-Models">Cost Models</h2>

<p>There 2 different cost models used in ASCLITE: Word-base cost and Time-base cost.</p>

<h3 id="Word-base-cost">Word-base cost</h3>

<p>The default one is based on the words. It assigns costs regarding the action taken on the word (correct, insertion, deletion, substitution, etc.): Correct (the two word are aligned together but have not the same syntax) [cost of 0], Substitution (the two word are aligned together and have the same syntax) [cost of 400], Deletion (word that appears in the hypothesis but not in the system output) [cost of 300], Insertion (word that not appears in the hypothesis but in the system output).</p>

<p>If there is no distinction between hypotheses and system outputs, it uses a &#39;generic&#39; cost model. The &#39;generic&#39; cost model is not working on pair of words but by set of words; the set of words representing the state of the alignment matrix. It calculates the number of &#39;insertions&#39; and &#39;deletions&#39; and the number of words that have the same syntax. It adds the costs of all the insertions and deletions, plus the cost of correct to the maximum number of words which have the same syntax and the cost of substitution to the rest, and this to the set of words.</p>

<h3 id="Time-base-cost">Time-base cost</h3>

<p>The second one is based on the times. It assigns costs regarding the times of the words. The cost if the sum of the differences between the begin times and end times of the words.</p>

<p>For example:</p>

<pre><code>        B   E
        |---| is the word in the timeline.
        ***** is the difference.
        
               B        E
        Word1: |-------|******   
        Word2: *****|--------|
                    B        E

        Cost: 11 (number of *)
        </code></pre>

<p>If there is no distinction between hypotheses and system outputs, it uses a &#39;generic&#39; cost model. The &#39;generic&#39; cost model, as for thw word-base model, is not working on pair of words but by set of words; the set of words representing the state of the alignment matrix. It uses the minimum and maximum times of all the words. Uses that times to calculates the costs by adding the differences between the minimum time versus the begin times, and the maximum time versus the end times. For the deletions, it just add to the cost the difference between the 2 maxima.</p>

<p>For example:</p>

<pre><code>        B   E
        |---| is the word in the timeline.
        ***** is the difference.
        
               
        Word1:     **|------------|*****   
        Word2:     *****|--------|******
        Word3:     **|---|**************
        Word4:     |--------|***********
        Deletion1: *********************
        Word5:     ************|-------|
       
        Cost: 78 (number of *)
   </code></pre>

<h2 id="Filtering">Filtering</h2>

<h3 id="UEM-and-References">UEM and References</h3>

<p>The UEM filtering works as both a filter and a semantic checker. The times within the UEM and reference files are expected to be coherent meaning there are no UEM segment times that are within the bounds of a reference segment.</p>

<p>It works as a filter because it keeps and scores only the reference segments that are encapsulated by the begin/end time definitions in the UEM (Seg4 in the example). Conversely, reference segments fully outside the UEM (Seg5-6 in the example) are removed from the scoring. If there is no UEM entry defined for a particular file/channel, then the segments with the same file/channel are removed as well.</p>

<p>It works as a checker by detecting if some segments are not fully inside (or outside) the UEM time definitions (Seg1-3 in the example). These conditions are fatal errors.</p>

<pre><code>        B   E
        |---| is the segment in the timeline.


        UEM:       |-------------|
        Seg1:  |-------|                   [out - error]
        Seg2:                   |-------|  [out - error]
        Seg3:   |-------------------|      [out - error]
        Seg4:        |-------|             [ in -  ok  ]
        Seg5:  |--|                        [out - info ]
        Seg6:                       |---|  [out - info ]</code></pre>

<p>The program reports an error when a reference segment is not fully inside the UEM (Seg1-3 in the example) then exits. If a reference segment is fully outside the UEM (Seg5-6 in the example) then asclite outputs informational messages about the segment.</p>

<p>Where errors are found in the UEM filtering, asclite exits.</p>

<h3 id="UEM-and-Hypotheses">UEM and Hypotheses</h3>

<p>The UEM filtering works not with the begin and end time of every hypothesis segments/tokens, but rather the mid-time. If the mid-time is outside the UEM time definitions then the segment/token is removed from scoring and an information message is outputted.</p>

<h2 id="Publications">Publications</h2>

<p>[1] <b>Multiple Dimension Levenshtein Edit Distance Calculations for Evaluating Automatic Speech Recognition Systems During Simultaneous Speech</b>, Jonathan Fiscus, Jerome Ajot, Nicolas Radde and Christophe Laprun, Proceedings of Language Resources and Evaluation (LREC), Genoa, Italy, May 2006.</p>

<h1 id="AUTHORS">AUTHORS</h1>

<dl>

<dt id="Jerome-Ajot-jerome.ajot-nist.gov">Jerome Ajot &lt;jerome.ajot@nist.gov&gt;</dt>
<dd>

</dd>
<dt id="Jon-Fiscus-jon.fiscus-nist.gov">Jon Fiscus &lt;jon.fiscus@nist.gov&gt;</dt>
<dd>

</dd>
<dt id="Nicolas-Radde-retired">Nicolas Radde &lt;retired&gt;</dt>
<dd>

</dd>
<dt id="Chris-Laprun-retired">Chris Laprun &lt;retired&gt;</dt>
<dd>

</dd>
</dl>

<h1 id="COPYRIGHT">COPYRIGHT</h1>

<p>Public Domain</p>

<h1 id="DISCLAIMER">DISCLAIMER</h1>

<p>This software was developed at the National Institute of Standards and Technology by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of the United States Code this software is not subject to copyright protection and is in the public domain. ASCLITE is an experimental system. NIST assumes no responsibility whatsoever for its use by other parties, and makes no guarantees, expressed or implied, about its quality, reliability, or any other characteristic. We would appreciate acknowledgement if the software is used.</p>

<p>THIS SOFTWARE IS PROVIDED &quot;AS IS.&quot; With regard to this software, NIST MAKES NO EXPRESS OR IMPLIED WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.</p>

<h1 id="POD-ERRORS">POD ERRORS</h1>

<p>Hey! <b>The above document had some coding errors, which are explained below:</b></p>

<dl>

<dt id="Around-line-187">Around line 187:</dt>
<dd>

<p>You forgot a &#39;=back&#39; before &#39;=head1&#39;</p>

<p>You forgot a &#39;=back&#39; before &#39;=head1&#39;</p>

</dd>
<dt id="Around-line-283">Around line 283:</dt>
<dd>

<p>&#39;=item&#39; outside of any &#39;=over&#39;</p>

</dd>
<dt id="Around-line-291">Around line 291:</dt>
<dd>

<p>You forgot a &#39;=back&#39; before &#39;=head1&#39;</p>

</dd>
</dl>


</body>

</html>