class_docstr: Class for detecting language of text.
class_docstr_tok: ["Class","for","detecting","language","of","text","."]
code: def _set_up_model(self, config, pipeline, device):
      batch_size = config.get("batch_size", 64)
      self._model = LangIDBiLSTM.load(
          path=config["model_path"],
          device=device,
          batch_size=batch_size,
          lang_subset=config.get("lang_subset"),
      )
      self._char_index = self._model.char_to_idx
      self._clean_text = config.get("clean_text")
  
file_path: stanza/stanza/pipeline/langid_processor.py
imports: import emoji
  import re
  import stanza
  import torch
  from stanza.models.common.doc import Document
  from stanza.models.langid.model import LangIDBiLSTM
  from stanza.pipeline._constants import *
  from stanza.pipeline.processor import UDProcessor, register_processor
label_desc: Use image node_id 1 for calling the LangIDProcessor obj's underlying member method code with example usage: obj._set_up_model(config, pipeline, device) without return types