示例#1
0
 public SearchState getInitialState()
 {
     DynamicFlatLinguist.InitialState initialState = new DynamicFlatLinguist.InitialState(this.this_0);
     initialState.addArc(new DynamicFlatLinguist.GrammarState(this.this_0, DynamicFlatLinguist.access_900(this.this_0).getInitialNode()));
     if (DynamicFlatLinguist.access_1000(this.this_0))
     {
         OutOfGrammarGraph outOfGrammarGraph = new OutOfGrammarGraph(DynamicFlatLinguist.access_1100(this.this_0), DynamicFlatLinguist.access_1200(this.this_0), DynamicFlatLinguist.access_1300(this.this_0));
         initialState.addArc(outOfGrammarGraph.getOutOfGrammarGraph());
     }
     return(initialState);
 }
示例#2
0
            internal FirstBranchState(OutOfGrammarGraph outOfGrammarGraph) : base(outOfGrammarGraph)
            {
                ArrayList arrayList = new ArrayList();
                Iterator  contextIndependentUnitIterator = OutOfGrammarGraph.access_200(outOfGrammarGraph).getContextIndependentUnitIterator();

                while (contextIndependentUnitIterator.hasNext())
                {
                    Unit unit = (Unit)contextIndependentUnitIterator.next();
                    OutOfGrammarGraph.OogHMM oogHMM = new OutOfGrammarGraph.OogHMM(outOfGrammarGraph, unit);
                    arrayList.add(oogHMM);
                }
                this.successors = (SearchStateArc[])arrayList.toArray(new SearchStateArc[arrayList.size()]);
            }
示例#3
0
 public override SearchStateArc[] getSuccessors()
 {
     if (this.hmmState.isExitState())
     {
         return(OutOfGrammarGraph.access_400(this.this_0));
     }
     HMMStateArc[]    successors = this.hmmState.getSuccessors();
     SearchStateArc[] array      = new SearchStateArc[successors.Length];
     for (int i = 0; i < successors.Length; i++)
     {
         array[i] = new OutOfGrammarGraph.OogHMMState(this.this_0, successors[i].getHMMState(), successors[i].getLogProbability());
     }
     return(array);
 }
示例#4
0
 internal UnknownWordState(OutOfGrammarGraph outOfGrammarGraph) : base(outOfGrammarGraph)
 {
     this.successors    = new SearchStateArc[1];
     this.successors[0] = OutOfGrammarGraph.access_000(outOfGrammarGraph);
 }
示例#5
0
 public override SearchStateArc[] getSuccessors()
 {
     return(OutOfGrammarGraph.access_500());
 }
示例#6
0
 internal FinalState(OutOfGrammarGraph outOfGrammarGraph) : base(outOfGrammarGraph)
 {
     this.this_0 = outOfGrammarGraph;
 }
示例#7
0
 internal static SearchStateArc[] access_400(OutOfGrammarGraph outOfGrammarGraph)
 {
     return(outOfGrammarGraph.lbsArcSet);
 }
示例#8
0
 internal static float access_300(OutOfGrammarGraph outOfGrammarGraph)
 {
     return(outOfGrammarGraph.logPhoneInsertionProbability);
 }
示例#9
0
 internal static AcousticModel access_200(OutOfGrammarGraph outOfGrammarGraph)
 {
     return(outOfGrammarGraph.acousticModel);
 }
示例#10
0
 internal static float access_100(OutOfGrammarGraph outOfGrammarGraph)
 {
     return(outOfGrammarGraph.logOutOfGrammarBranchProbability);
 }
示例#11
0
 public override float getLanguageProbability()
 {
     return(OutOfGrammarGraph.access_100(this.this_0));
 }
示例#12
0
 internal LastBranchState(OutOfGrammarGraph outOfGrammarGraph) : base(outOfGrammarGraph)
 {
     this.successors    = new SearchStateArc[2];
     this.successors[0] = OutOfGrammarGraph.access_000(outOfGrammarGraph);
     this.successors[1] = new OutOfGrammarGraph.FinalState(outOfGrammarGraph);
 }
示例#13
0
 internal static OutOfGrammarGraph.FirstBranchState access_000(OutOfGrammarGraph outOfGrammarGraph)
 {
     return(outOfGrammarGraph.fbs);
 }
示例#14
0
 internal OogSearchState(OutOfGrammarGraph outOfGrammarGraph)
 {
     this.this_0 = outOfGrammarGraph;
 }
示例#15
0
 internal OogHMMState(OutOfGrammarGraph outOfGrammarGraph, HMMState hmmstate, float num) : base(outOfGrammarGraph)
 {
     this.hmmState       = hmmstate;
     this.logProbability = num;
 }
示例#16
0
 public override float getInsertionProbability()
 {
     return(OutOfGrammarGraph.access_300(this.this_0));
 }
示例#17
0
 internal OogHMM(OutOfGrammarGraph outOfGrammarGraph, Unit u) : base(outOfGrammarGraph)
 {
     this.hmm           = OutOfGrammarGraph.access_200(outOfGrammarGraph).lookupNearestHMM(u, HMMPosition.__UNDEFINED, false);
     this.successors    = new SearchStateArc[1];
     this.successors[0] = new OutOfGrammarGraph.OogHMMState(outOfGrammarGraph, this.hmm.getInitialState(), 0f);
 }