'Hypothesis constructor.
Args:
tokens: start tokens for decoding.
log_prob: log prob of the start tokens, usually 1.
state: decoder initial states.'

def __init__(self, tokens, log_prob, state):

    self.tokens = tokens
    self.log_prob = log_prob
    self.state = state
