class_docstr: Args:
      version
      data_dir
  
  Attributes:
      model
      classes
class_docstr_tok: ["Args",":","version","data_dir","Attributes",":","model","classes"]
docstr: Identify the ``topn`` most probable languages identified in ``text``,
  with or without the corresponding probabilities.
  
  Args:
      text
      topn
      with_probs
  
  Returns:
      ISO 639-1 standard language code, optionally with its probability,
      of the ``topn`` most probable languages.
docstr_tok: ["Identify","the","``","topn","``","most","probable","languages","identified","in","``","text","``",",","with","or","without","the","corresponding","probabilities",".","Args",":","text","topn","with_probs","Returns",":","ISO","639-1","standard","language","code",",","optionally","with","its","probability",",","of","the","``","topn","``","most","probable","languages","."]
code: def identify_topn_langs(
      self,
      text: str,
      topn: int = 3,
      with_probs: bool = False,
  ) -> list[str] | list[tuple[str, float]]:
      """
      Identify the ``topn`` most probable languages identified in ``text``,
      with or without the corresponding probabilities.
  
      Args:
          text
          topn
          with_probs
  
      Returns:
          ISO 639-1 standard language code, optionally with its probability,
          of the ``topn`` most probable languages.
      """
      if not self._is_valid_text(text):
          results = [("un", 1.0)]
      else:
          results_ = self.model.predict(text, k=topn)
          results: list[tuple[str, float]] = [
              (self._to_lang(result[0]), float(result[1]))
              for result in zip(results_[0], results_[1])
          ]
      return (
          [lang for lang, _ in results]
          if with_probs is False
          else results
      )
  
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 11 for calling the LangIdentifier obj's underlying member method code with example usage: obj.identify_topn_langs(text, topn, with_probs) and returns: unknown