예제 #1
0
 def lookaheadProbFull(self, nt, word):
     presplit = nt.split("_")[0]
     try:
         lamb = self.lambdas[presplit]
     except KeyError:
         lamb = 0.5
     return Grammar.lookaheadProbFull(self, nt, word, lamb=lamb)