示例#1
0
 def __init__(self, varset, var1, var1pos, var2, var2pos):
     ExFactor.__init__(self, varset)
     global TT_FACTOR
     self.var1 = var1
     self.var1pos = var1pos
     self.var2 = var2
     self.var2pos = var2pos
     self.factor_type = TT_FACTOR
示例#2
0
 def __init__(self, varset, var1, var1pos, var2, var2pos):
     ExFactor.__init__(self, varset)
     global TT_FACTOR
     self.var1 = var1
     self.var1pos = var1pos
     self.var2 = var2
     self.var2pos = var2pos
     self.factor_type = TT_FACTOR
示例#3
0
    def __init__(self, varset, var, observed_state):
        global TO_FACTOR, obs_list
        ExFactor.__init__(self, varset)
        assert isinstance(observed_state, str) or isinstance(observed_state, unicode)
        assert observed_state in obs_list
        self.var = var
        self.factor_type = TO_FACTOR

        self.observed_state = observed_state
示例#4
0
    def __init__(self, varset, var, observed_state):
        global TO_FACTOR, obs_list
        ExFactor.__init__(self, varset)
        assert isinstance(observed_state, str) or isinstance(
            observed_state, unicode)
        assert observed_state in obs_list
        self.var = var
        self.factor_type = TO_FACTOR

        self.observed_state = observed_state
示例#5
0
 def __init__(self, varset, var1, var1pos, var2, var2pos, observed_state):
     ExFactor.__init__(self, varset)
     global TT_FACTOR
     assert isinstance(observed_state, str) or isinstance(observed_state, unicode)
     print 'observed state is', observed_state, len(tag_list)
     assert observed_state in tag_list
     self.var1 = var1
     self.var2 = var2
     self.var1pos = var1pos
     self.var2pos = var2pos
     self.factor_type = TT_FACTOR
     self.observed_state = observed_state
示例#6
0
 def __init__(self, varset, var1, var1pos, var2, var2pos, observed_state):
     ExFactor.__init__(self, varset)
     global TT_FACTOR
     assert isinstance(observed_state, str) or isinstance(
         observed_state, unicode)
     print 'observed state is', observed_state, len(tag_list)
     assert observed_state in tag_list
     self.var1 = var1
     self.var2 = var2
     self.var1pos = var1pos
     self.var2pos = var2pos
     self.factor_type = TT_FACTOR
     self.observed_state = observed_state