(self, hmmitems)
将序列转换为hmmitems ，添加hmm训练器
            params
                hmmitems HmmItems
            return 
                None
            raise 
                None
将序列转换为hmmitems ，添加hmm训练器
            params
                hmmitems HmmItems
            return 
                None
            raise 
                None
将序列转换为hmmitems ，添加hmm训练器 params hmmitems HmmItems return None raise None
def add_items(self, hmmitems):
        """将序列转换为hmmitems ，添加hmm训练器
            params
                hmmitems HmmItems
            return 
                None
            raise 
                None
        """
        for i in range(len(hmmitems) - 1):
            self.hmm.transition_probability[hmmitems[i].hide][
                hmmitems[i + 1].hide] += 1
        self.hmm.start_states[hmmitems[0].hide] += 1
        for item in hmmitems:
            self.hmm.obs_state[item.obs] += 1
            self.hmm.states_count[item.hide] += 1
            self.hmm.emission_probability[item.hide][item.obs] += 1
def add_items ( self , hmmitems ) : for i in range ( len ( hmmitems ) - 1 ) : self . hmm . transition_probability [ hmmitems [ i ] . hide ] [ hmmitems [ i + 1 ] . hide ] += 1 self . hmm . start_states [ hmmitems [ 0 ] . hide ] += 1 for item in hmmitems : self . hmm . obs_state [ item . obs ] += 1 self . hmm . states_count [ item . hide ] += 1 self . hmm . emission_probability [ item . hide ] [ item . obs ] += 1