edu.cmu.sphinx.research.parallel
Class ParallelSimpleLinguist

java.lang.Object
  extended byedu.cmu.sphinx.linguist.flat.FlatLinguist
      extended byedu.cmu.sphinx.research.parallel.ParallelSimpleLinguist
All Implemented Interfaces:
Configurable, Linguist

public class ParallelSimpleLinguist
extends FlatLinguist

A extended form of the FlatLinguist that creates a search graph with states for multiple feature streams.

The only difference in the topology of the search graph created by this linguist and the FlatLinguist is that at a certain level (either the unit or the state level), the graph splits into two parallel branches of states, one for each feature stream. Moreover, at the end of that same level, the multiple streams are again merged.


Field Summary
static java.lang.String PROP_FEATURE_STREAMS
          Property that specifies the feature streams.
static java.lang.String PROP_STACK_CAPACITY
          The sphinx property that specifies the height of the token stacks.
static int PROP_STACK_CAPACITY_DEFAULT
          The default value for the property PROP_STACK_CAPACITY, which is 0.
static java.lang.String PROP_TIE_LEVEL
          The sphinx property that specifies the level at which the parallel states tie.
static java.lang.String PROP_TIE_LEVEL_DEFAULT
          The default value for the property PROP_TIE_LEVEL, which is "unit".
 
Fields inherited from class edu.cmu.sphinx.linguist.flat.FlatLinguist
PROP_ACOUSTIC_MODEL, PROP_ADD_OUT_OF_GRAMMAR_BRANCH, PROP_ADD_OUT_OF_GRAMMAR_BRANCH_DEFAULT, PROP_DUMP_GSTATES, PROP_DUMP_GSTATES_DEFAULT, PROP_GRAMMAR, PROP_LOG_MATH, PROP_OUT_OF_GRAMMAR_PROBABILITY, PROP_OUT_OF_GRAMMAR_PROBABILITY_DEFAULT, PROP_PHONE_INSERTION_PROBABILITY, PROP_PHONE_INSERTION_PROBABILITY_DEFAULT, PROP_PHONE_LOOP_ACOUSTIC_MODEL, PROP_UNIT_MANAGER
 
Fields inherited from interface edu.cmu.sphinx.linguist.Linguist
PROP_ADD_FILLER_WORDS, PROP_ADD_FILLER_WORDS_DEFAULT, PROP_COMPOSITE_THRESHOLD, PROP_COMPOSITE_THRESHOLD_DEFAULT, PROP_FILLER_INSERTION_PROBABILITY, PROP_FILLER_INSERTION_PROBABILITY_DEFAULT, PROP_GENERATE_UNIT_STATES, PROP_GENERATE_UNIT_STATES_DEFAULT, PROP_LANGUAGE_WEIGHT, PROP_LANGUAGE_WEIGHT_DEFAULT, PROP_SHOW_COMPILATION_PROGRESS, PROP_SHOW_COMPILATION_PROGRESS_DEFAULT, PROP_SHOW_SEARCH_SPACE, PROP_SHOW_SEARCH_SPACE_DEFAULT, PROP_SILENCE_INSERTION_PROBABILITY, PROP_SILENCE_INSERTION_PROBABILITY_DEFAULT, PROP_SPREAD_WORD_PROBABILITIES_ACROSS_PRONUNCIATIONS, PROP_SPREAD_WORD_PROBABILITIES_ACROSS_PRONUNCIATIONS_DEFAULT, PROP_UNIGRAM_SMEAR_WEIGHT, PROP_UNIGRAM_SMEAR_WEIGHT_DEFAULT, PROP_UNIT_INSERTION_PROBABILITY, PROP_UNIT_INSERTION_PROBABILITY_DEFAULT, PROP_VALIDATE_SEARCH_SPACE, PROP_VALIDATE_SEARCH_SPACE_DEFAULT, PROP_WANT_UNIGRAM_SMEAR, PROP_WANT_UNIGRAM_SMEAR_DEFAULT, PROP_WORD_INSERTION_PROBABILITY, PROP_WORD_INSERTION_PROBABILITY_DEFAULT
 
Constructor Summary
ParallelSimpleLinguist()
           
 
Method Summary
 java.util.Iterator getFeatureStreams()
          Returns an Iterator of the feature streams.
 void newProperties(PropertySheet ps)
          This method is called when this configurable component has new data.
 void register(java.lang.String name, Registry registry)
          Register my properties.
 
Methods inherited from class edu.cmu.sphinx.linguist.flat.FlatLinguist
allocate, deallocate, getLogMath, getLogSilenceInsertionProbability, getName, getSearchGraph, startRecognition, stopRecognition
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_STACK_CAPACITY

public static final java.lang.String PROP_STACK_CAPACITY
The sphinx property that specifies the height of the token stacks.

See Also:
Constant Field Values

PROP_STACK_CAPACITY_DEFAULT

public static final int PROP_STACK_CAPACITY_DEFAULT
The default value for the property PROP_STACK_CAPACITY, which is 0.

See Also:
Constant Field Values

PROP_TIE_LEVEL

public static final java.lang.String PROP_TIE_LEVEL
The sphinx property that specifies the level at which the parallel states tie. Values can be "unit" or "state".

See Also:
Constant Field Values

PROP_TIE_LEVEL_DEFAULT

public static final java.lang.String PROP_TIE_LEVEL_DEFAULT
The default value for the property PROP_TIE_LEVEL, which is "unit".

See Also:
Constant Field Values

PROP_FEATURE_STREAMS

public static final java.lang.String PROP_FEATURE_STREAMS
Property that specifies the feature streams.

See Also:
Constant Field Values
Constructor Detail

ParallelSimpleLinguist

public ParallelSimpleLinguist()
Method Detail

register

public void register(java.lang.String name,
                     Registry registry)
              throws PropertyException
Description copied from interface: Configurable
Register my properties. This method is called once early in the time of the component, shortly after the component is constructed. This component should register any configuration properties that it needs to register. If this configurable extends another configurable, super.register should also be called

Specified by:
register in interface Configurable
Overrides:
register in class FlatLinguist
Throws:
PropertyException

newProperties

public void newProperties(PropertySheet ps)
                   throws PropertyException
Description copied from interface: Configurable
This method is called when this configurable component has new data. The component should first validate the data. If it is bad the component should return false. If the data is good, the component should record the the data internally and return true.

Specified by:
newProperties in interface Configurable
Overrides:
newProperties in class FlatLinguist
Throws:
PropertyException

getFeatureStreams

public java.util.Iterator getFeatureStreams()
Returns an Iterator of the feature streams.

Returns:
an iterator of the feature streams