class_docstr: Language model state.
docstr: Compare two language model states.
  
  Args:
      state (CTCDecoderLMState): LM state to compare against
  
  Returns:
      int: 0 if the states are the same, -1 if self is less, +1 if self is greater.
docstr_tok: ["Compare","two","language","model","states",".","Args",":","state","(","CTCDecoderLMState",")",":","LM","state","to","compare","against","Returns",":","int",":","0","if","the","states","are","the","same",",","-1","if","self","is","less",",","+1","if","self","is","greater","."]
code: def compare(self, state: CTCDecoderLMState) -> CTCDecoderLMState:
      """Compare two language model states.
  
      Args:
          state (CTCDecoderLMState): LM state to compare against
  
      Returns:
          int: 0 if the states are the same, -1 if self is less, +1 if self is greater.
      """
      pass
  
imports: from __future__ import annotations
  import itertools
  from abc import abstractmethod
  from collections import namedtuple
  from typing import Dict, List, NamedTuple, Optional, Tuple, Union
  import torch
  from flashlight.lib.text.decoder import CriterionType, LexiconDecoder, LexiconDecoderOptions, LexiconFreeDecoder, LexiconFreeDecoderOptions, LM, LMState, SmearingMode, Trie, ZeroLM
  from flashlight.lib.text.dictionary import create_word_dict, Dictionary, load_words
  from torchaudio.utils import download_asset
label_desc: Use image node_id 3 for calling the CTCDecoderLMState obj's underlying member method code with example usage: obj.compare(state) without return types