コード例 #1
0
 public override SearchStateArc[] getSuccessors()
 {
     SearchStateArc[] array = this.getCachedSuccessors();
     if (array != null)
     {
         return(array);
     }
     if (this.isFinal())
     {
         array = DynamicFlatLinguist.access_100(this.this_0);
     }
     else if (this.node.isEmpty())
     {
         array = this.getNextGrammarStates(this.lc, this.nextBaseID);
     }
     else
     {
         Word             word           = this.node.getWord();
         Pronunciation[]  pronunciations = word.getPronunciations();
         SearchStateArc[] array2         = new SearchStateArc[pronunciations.Length];
         for (int i = 0; i < pronunciations.Length; i++)
         {
             array2[i] = new DynamicFlatLinguist.PronunciationState(this.this_0, this, pronunciations[i]);
         }
         array = array2;
     }
     this.cacheSuccessors(array);
     return(array);
 }
コード例 #2
0
            internal FullHMMSearchState(DynamicFlatLinguist dynamicFlatLinguist, DynamicFlatLinguist.PronunciationState pronunciationState, int num, int leftID, int rightID) : base(dynamicFlatLinguist)
            {
                this.pState = pronunciationState;
                this.index  = num;
                this.lc     = leftID;
                this.rc     = rightID;
                int baseID = pronunciationState.getPronunciation().getUnits()[num].getBaseID();
                int unitID = DynamicFlatLinguist.access_200(dynamicFlatLinguist).buildID(baseID, leftID, rightID);

                this.hmm = DynamicFlatLinguist.access_200(dynamicFlatLinguist).getHMM(unitID, this.getPosition());
                this._isLastUnitOfWord = (num == pronunciationState.getPronunciation().getUnits().Length - 1);
            }
コード例 #3
0
 public override bool equals(object obj)
 {
     if (obj == this)
     {
         return(true);
     }
     if (obj is DynamicFlatLinguist.PronunciationState)
     {
         DynamicFlatLinguist.PronunciationState pronunciationState = (DynamicFlatLinguist.PronunciationState)obj;
         return(pronunciationState.gs.equals(this.gs) && java.lang.Object.instancehelper_equals(pronunciationState.pronunciation, this.pronunciation));
     }
     return(false);
 }
コード例 #4
0
 internal FullHMMSearchState(DynamicFlatLinguist dynamicFlatLinguist, DynamicFlatLinguist.PronunciationState pronunciationState, int num, int num2) : this(dynamicFlatLinguist, pronunciationState, num, num2, pronunciationState.getPronunciation().getUnits()[num + 1].getBaseID())
 {
 }