class_docstr: A Language Model for Finetune
  
  :param config: A :py:class:`finetune.config.Settings` object or None (for default config).
  :param \**kwargs: key-value pairs of config items to override.
class_docstr_tok: ["A","Language","Model","for","Finetune",":","param","config",":","A",":","py",":","class",":","`","finetune.config.Settings","`","object","or","None","(","for","default","config",")",".",":","param","\\","*","*","kwargs",":","key-value","pairs","of","config","items","to","override","."]
docstr: Produces a list of most likely class labels as determined by the fine-tuned model.
  
  :param X: list or array of text to embed.
  :returns: Perplexities of each of the input sentences.
docstr_tok: ["Produces","a","list","of","most","likely","class","labels","as","determined","by","the","fine-tuned","model",".",":","param","X",":","list","or","array","of","text","to","embed",".",":","returns",":","Perplexities","of","each","of","the","input","sentences","."]
code: def predict(self, X, context=None, **kwargs):
      """
      Produces a list of most likely class labels as determined by the fine-tuned model.
  
      :param X: list or array of text to embed.
      :returns: Perplexities of each of the input sentences.
      """
      return self._inference(
          X,
          predict_keys=[PredictMode.LM_PERPLEXITY],
          context=context,
          **kwargs,
      )
  
imports: from finetune.base import PredictMode
  from finetune.target_models.classifier import Classifier
label_desc: Use image node_id 1 for calling the LanguageModel obj's underlying member method code with example usage: obj.predict(X, context) and returns: self