Help-Site Computer Manuals
Software
Hardware
Programming
Networking
  Algorithms & Data Structures   Programming Languages   Revision Control
  Protocols
  Cameras   Computers   Displays   Keyboards & Mice   Motherboards   Networking   Printers & Scanners   Storage
  Windows   Linux & Unix   Mac

Speech::Recognizer::ScLite::Line
Stores a single datum for use in C<Speech::Recognizer::ScLite>

Speech::Recognizer::ScLite::Line - Stores a single datum for use in C<Speech::Recognizer::ScLite>


NAME

Speech::Recognizer::ScLite::Line - Stores a single datum for use in Speech::Recognizer::ScLite


SYNOPSIS

See the Speech::Recognizer::ScLite manpage.


DESCRIPTION

Data-bearing class for Speech::Recognizer::ScLite speech recognition scoring utility.


Methods

Class methods

->new(wf_id => unique-string, [ attribute => value ]*)
Class method. Creates a new instance of this class. Takes as arguments:
wf_id => unique-string
new() always requires you to identify the wf_id when you call it.

attribute => value
new() allows any number of additional attribute-value pairs, where attribute is one of the data fields of this object (see Data access methods below).

Data access methods

->ref()
Gets sets the reference text. This should be the correct transcription (for some values of ``correct'').

->hyp()
Gets/sets the hypothesized text. This should be what your reco system thought was the right transcription.

->wf_id()
Gets/sets the waveform ID of the datum. This should probably be some unique key to the line. Usually, this is the full path to the waveform you tested. This should probably not be altered after setting it in the new() call, but the function is available for those who wish to work such black magic.

->sort_key()
Gets/sets the sort group for this key. This reflects the membership in an arbitrary group.

If not specified by argument to new() or by calling this function, the default sort_key will be the directory name of the wf_id you pass in.

See SYNOPSIS in the Speech::Recognizer::ScLite manpage for an example of an alternate sort_key setting.

Clan methods

The following methods are intended to be called by very friendly classes (e.g. Speech::Recognizer::ScLite) -- hence the leading underscores. But since they are not strictly private methods, they are documented below.

->_write_hyp(Filehandle)
Writes a ``hyp'' line to the Filehandle provided, in the format that Speech::Recognizer::ScLite expects.

->_write_ref(Filehandle)
Writes a ``ref'' line to the Filehandle provided, in the format that Speech::Recognizer::ScLite expects.


HISTORY

  1. 01
  2. Original version; created by h2xs 1.21 with options
    
      -CAX
    
            Speech::Recognizer::ScLite::Line


AUTHOR

Jeremy Kahn, <kahn@cpan.org>


SEE ALSO

the Speech::Recognizer::ScLite manpage.

perl.

Programminig
Wy
Wy
yW
Wy
Programming
Wy
Wy
Wy
Wy