class_docstr: ABC for Language Models.
  
  Cannot be directly instantiated itself.
docstr: Masks out of vocab (OOV) words and computes their model score.
  
  For model-specific logic of calculating scores, see the `unmasked_score`
  method.
docstr_tok: ["Masks","out","of","vocab","(","OOV",")","words","and","computes","their","model","score",".","For","model-specific","logic","of","calculating","scores",",","see","the","`","unmasked_score","`","method","."]
code: def score(self, word, context=None):
      """Masks out of vocab (OOV) words and computes their model score.
  
      For model-specific logic of calculating scores, see the `unmasked_score`
      method.
      """
      return self.unmasked_score(
          self.vocab.lookup(word),
          self.vocab.lookup(context) if context else None,
      )
  
imports: import random
  import warnings
  from abc import ABCMeta, abstractmethod
  from bisect import bisect
  from itertools import accumulate
  from nltk.lm.counter import NgramCounter
  from nltk.lm.util import log_base2
  from nltk.lm.vocabulary import Vocabulary
label_desc: Use image node_id 3 for calling the LanguageModel obj's underlying member method code with example usage: obj.score(word, context) and returns: self