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); }
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); }
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()]); }
internal static SearchStateArc[] access_400(PhoneLoop phoneLoop) { return(phoneLoop.lbsArcSet); }
internal static float access_300(PhoneLoop phoneLoop) { return(phoneLoop.logPhoneInsertionProbability); }
internal static AcousticModel access_200(PhoneLoop phoneLoop) { return(phoneLoop.acousticModel); }
internal static float access_100(PhoneLoop phoneLoop) { return(phoneLoop.logOutOfGrammarBranchProbability); }
public override float getLanguageProbability() { return(PhoneLoop.access_100(this.this_0)); }
internal UnknownWordState(PhoneLoop phoneLoop) : base(phoneLoop) { this.successors = new SearchStateArc[1]; this.successors[0] = PhoneLoop.access_000(phoneLoop); }
public override SearchStateArc[] getSuccessors() { return(PhoneLoop.access_600()); }
internal OogSearchState(PhoneLoop phoneLoop) { this.this_0 = phoneLoop; }
internal OogHMMState(PhoneLoop phoneLoop, HMMState hmmstate, float num) : base(phoneLoop) { this.hmmState = hmmstate; this.logProbability = num; }
public override float getInsertionProbability() { return(PhoneLoop.access_300(this.this_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); }
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]; }
internal static SearchStateArc[] access_500(PhoneLoop phoneLoop) { return(phoneLoop.toGrammarSearchState); }
internal FinalState(PhoneLoop phoneLoop) : base(phoneLoop) { this.this_0 = phoneLoop; }
internal static PhoneLoop.FirstBranchState access_000(PhoneLoop phoneLoop) { return(phoneLoop.fbs); }