Example #1
0
            public override SearchStateArc[] getSuccessors()
            {
                AFlatLinguist.access_108(this.this_0);
                ulong num  = (ulong)AFlatLinguist.access_100(this.this_0);
                ulong num2 = (ulong)500000;

                if (((num2 != 18446744073709551615UL) ? (num % num2) : 0UL) == 0UL)
                {
                    AFlatLinguist.access_200(this.this_0).info(new StringBuilder().append("Free Memory= ").append(this.this_0.runtime.freeMemory() / (long)((ulong)1048576)).append(" MB\tMax Memory= ").append(this.this_0.runtime.maxMemory() / (long)((ulong)1048576)).append("MB").toString());
                }
                SearchStateArc[] array = this.getCachedSuccessors();
                if (array == null)
                {
                    if (this.isFinal())
                    {
                        array = AFlatLinguist.access_300(this.this_0);
                    }
                    else if (this.node.isEmpty())
                    {
                        array = this.getNextGrammarStates(this.lc, this.nextBaseID);
                    }
                    else
                    {
                        Word            word   = this.node.getWord();
                        Pronunciation[] array2 = word.getPronunciations();
                        array2 = this.filter(array2, this.nextBaseID);
                        SearchStateArc[] array3;
                        if (AFlatLinguist.access_400(this.this_0))
                        {
                            array3 = new SearchStateArc[array2.Length + 1];
                        }
                        else
                        {
                            array3 = new SearchStateArc[array2.Length];
                        }
                        for (int i = 0; i < array2.Length; i++)
                        {
                            array3[i] = new AFlatLinguist.PronunciationState(this.this_0, this, array2[i]);
                        }
                        SearchStateArc[] toGrammarSearchState = new SearchStateArc[]
                        {
                            this
                        };
                        if (AFlatLinguist.access_400(this.this_0))
                        {
                            PhoneLoop phoneLoop = new PhoneLoop(AFlatLinguist.access_500(this.this_0), AFlatLinguist.access_600(this.this_0), AFlatLinguist.access_700(this.this_0), toGrammarSearchState);
                            array3[array2.Length] = phoneLoop.getPhoneLoop();
                        }
                        array = array3;
                    }
                    this.cacheSuccessors(array);
                }
                return(array);
            }
Example #2
0
 public override SearchStateArc[] getSuccessors()
 {
     if (this.hmmState.isExitState())
     {
         return(PhoneLoop.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 PhoneLoop.OogHMMState(this.this_0, successors[i].getHMMState(), successors[i].getLogProbability());
     }
     return(array);
 }
Example #3
0
            internal FirstBranchState(PhoneLoop phoneLoop) : base(phoneLoop)
            {
                ArrayList arrayList = new ArrayList();
                Iterator  contextIndependentUnitIterator = PhoneLoop.access_200(phoneLoop).getContextIndependentUnitIterator();

                while (contextIndependentUnitIterator.hasNext())
                {
                    Unit unit = (Unit)contextIndependentUnitIterator.next();
                    if (!unit.isFiller())
                    {
                        PhoneLoop.OogHMM oogHMM = new PhoneLoop.OogHMM(phoneLoop, unit);
                        arrayList.add(oogHMM);
                    }
                }
                this.successors = (SearchStateArc[])arrayList.toArray(new SearchStateArc[arrayList.size()]);
            }
Example #4
0
 internal static SearchStateArc[] access_400(PhoneLoop phoneLoop)
 {
     return(phoneLoop.lbsArcSet);
 }
Example #5
0
 internal static float access_300(PhoneLoop phoneLoop)
 {
     return(phoneLoop.logPhoneInsertionProbability);
 }
Example #6
0
 internal static AcousticModel access_200(PhoneLoop phoneLoop)
 {
     return(phoneLoop.acousticModel);
 }
Example #7
0
 internal static float access_100(PhoneLoop phoneLoop)
 {
     return(phoneLoop.logOutOfGrammarBranchProbability);
 }
Example #8
0
 public override float getLanguageProbability()
 {
     return(PhoneLoop.access_100(this.this_0));
 }
Example #9
0
 internal UnknownWordState(PhoneLoop phoneLoop) : base(phoneLoop)
 {
     this.successors    = new SearchStateArc[1];
     this.successors[0] = PhoneLoop.access_000(phoneLoop);
 }
Example #10
0
 public override SearchStateArc[] getSuccessors()
 {
     return(PhoneLoop.access_600());
 }
Example #11
0
 internal OogSearchState(PhoneLoop phoneLoop)
 {
     this.this_0 = phoneLoop;
 }
Example #12
0
 internal OogHMMState(PhoneLoop phoneLoop, HMMState hmmstate, float num) : base(phoneLoop)
 {
     this.hmmState       = hmmstate;
     this.logProbability = num;
 }
Example #13
0
 public override float getInsertionProbability()
 {
     return(PhoneLoop.access_300(this.this_0));
 }
Example #14
0
 internal OogHMM(PhoneLoop phoneLoop, Unit u) : base(phoneLoop)
 {
     this.hmm           = PhoneLoop.access_200(phoneLoop).lookupNearestHMM(u, HMMPosition.__UNDEFINED, false);
     this.successors    = new SearchStateArc[1];
     this.successors[0] = new PhoneLoop.OogHMMState(phoneLoop, this.hmm.getInitialState(), 0f);
 }
Example #15
0
 internal LastBranchState(PhoneLoop phoneLoop) : base(phoneLoop)
 {
     this.successors    = new SearchStateArc[2];
     this.successors[0] = PhoneLoop.access_000(phoneLoop);
     this.successors[1] = PhoneLoop.access_500(phoneLoop)[0];
 }
Example #16
0
 internal static SearchStateArc[] access_500(PhoneLoop phoneLoop)
 {
     return(phoneLoop.toGrammarSearchState);
 }
Example #17
0
 internal FinalState(PhoneLoop phoneLoop) : base(phoneLoop)
 {
     this.this_0 = phoneLoop;
 }
Example #18
0
 internal static PhoneLoop.FirstBranchState access_000(PhoneLoop phoneLoop)
 {
     return(phoneLoop.fbs);
 }