(self)
return self._language_model
Returns the nearest LanguageModel by walking my parents.

    Memoizes the computation, by setting self._language_model after the first
    parent lookup.

    Returns:
      (LanguageModel) A LanguageModel
Returns the nearest LanguageModel by walking my parents.
Returns the nearest LanguageModel by walking my parents .
def language_model(self):
    """Returns the nearest LanguageModel by walking my parents.

    Memoizes the computation, by setting self._language_model after the first
    parent lookup.

    Returns:
      (LanguageModel) A LanguageModel
    """
    if self._language_model:
      return self._language_model
    if self._parent:
      self._language_model = self._parent.language_model
    return self._language_model
def language_model ( self ) : if self . _language_model : return self . _language_model if self . _parent : self . _language_model = self . _parent . language_model return self . _language_model