class_docstr: Class for detecting language of text.
class_docstr_tok: ["Class","for","detecting","language","of","text","."]
docstr: Identify languages for each sequence in a batch tensor
docstr_tok: ["Identify","languages","for","each","sequence","in","a","batch","tensor"]
code: def _id_langs(self, batch_tensor):
      """
      Identify languages for each sequence in a batch tensor
      """
      predictions = self._model.prediction_scores(batch_tensor)
      prediction_labels = [
          self._model.idx_to_tag[prediction]
          for prediction in predictions
      ]
  
      return prediction_labels
  
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 3 for calling the LangIDProcessor obj's underlying member method code with example usage: obj._id_langs(batch_tensor) and returns: prediction_labels