class_docstr: Language model container class to consolidate functionality.
  
  This class is a wrapper around the kenlm language model. It provides
  functionality to score tokens and to get the initial state.
  
  Taken from: https://github.com/kensho-technologies/pyctcdecode
  
  Arguments
  ---------
  kenlm_model : kenlm.Model
      Kenlm model.
  unigrams : list
      List of known word unigrams.
  alpha : float
      Weight for language model during shallow fusion.
  beta : float
      Weight for length score adjustment of during scoring.
  unk_score_offset : float
      Amount of log score offset for unknown tokens.
  score_boundary : bool
      Whether to have kenlm respect boundaries when scoring.
class_docstr_tok: ["Language","model","container","class","to","consolidate","functionality",".","This","class","is","a","wrapper","around","the","kenlm","language","model",".","It","provides","functionality","to","score","tokens","and","to","get","the","initial","state",".","Taken","from",":","https",":","\/\/github.com\/kensho-technologies\/pyctcdecode","Arguments","--","--","--","--","-","kenlm_model",":","kenlm.Model","Kenlm","model",".","unigrams",":","list","List","of","known","word","unigrams",".","alpha",":","float","Weight","for","language","model","during","shallow","fusion",".","beta",":","float","Weight","for","length","score","adjustment","of","during","scoring",".","unk_score_offset",":","float","Amount","of","log","score","offset","for","unknown","tokens",".","score_boundary",":","bool","Whether","to","have","kenlm","respect","boundaries","when","scoring","."]
docstr: Get the order of the n-gram language model.
docstr_tok: ["Get","the","order","of","the","n-gram","language","model","."]
code: def order(self) -> int:
      """Get the order of the n-gram language model."""
      return cast(int, self._kenlm_model.order)
  
file_path: speechbrain/speechbrain/decoders/language_model.py
imports: import logging
  from typing import Collection, Optional, Set, Tuple, cast
  from pygtrie import CharTrie
  import math
label_desc: Use image node_id 2 for calling the LanguageModel obj's underlying member method code with example usage: obj.order() and returns: cast