class_docstr: Args:
      version
      data_dir
  
  Attributes:
      model
      classes
class_docstr_tok: ["Args",":","version","data_dir","Attributes",":","model","classes"]
docstr: Identify the most probable language identified in ``text``,
  with or without the corresponding probability.
  
  Args:
      text
      with_probs
  
  Returns:
      ISO 639-1 standard language code of the most probable language,
      optionally with its probability.
docstr_tok: ["Identify","the","most","probable","language","identified","in","``","text","``",",","with","or","without","the","corresponding","probability",".","Args",":","text","with_probs","Returns",":","ISO","639-1","standard","language","code","of","the","most","probable","language",",","optionally","with","its","probability","."]
code: def identify_lang(
      self, text: str, with_probs: bool = False
  ) -> str | tuple[str, float]:
      """
      Identify the most probable language identified in ``text``,
      with or without the corresponding probability.
  
      Args:
          text
          with_probs
  
      Returns:
          ISO 639-1 standard language code of the most probable language,
          optionally with its probability.
      """
      if not self._is_valid_text(text):
          result = ("un", 1.0)
      else:
          result_ = self.model.predict(text, k=1)
          result: tuple[str, float] = (
              self._to_lang(result_[0][0]),  # type: ignore
              float(result_[1][0]),
          )
      return result[0] if with_probs is False else result
  
imports: from __future__ import annotations
  import logging
  import pathlib
  import urllib.parse
  import floret
  from floret.floret import _floret
  from ..None import utils
  from ..constants import DEFAULT_DATA_DIR
label_desc: Use image node_id 10 for calling the LangIdentifier obj's underlying member method code with example usage: obj.identify_lang(text, with_probs) and returns: unknown