def sentence_score(self, sentence: str):
    self._model.eval()
    total_score = 0
    assert (len(sentence) > 1)
    for i in range(1, len(sentence)):
        temp_score = self._next_word_score(sentence[:i], sentence[i])
        total_score += temp_score
    return total_score
def sentence_score(self, sentence: str):
    self._model.eval()
    total_score = 0
    assert (len(sentence) > 1)
    for i in range(1, len(sentence)):
        temp_score = self._next_word_score(sentence[:i], sentence[i])
        total_score += temp_score
    return total_score