class_docstr: Args:
      version
      data_dir
  
  Attributes:
      model
      classes
class_docstr_tok: ["Args",":","version","data_dir","Attributes",":","model","classes"]
code: def __init__(
      self,
      version: str = "3.0",
      data_dir: str
      | pathlib.Path = DEFAULT_DATA_DIR.joinpath("lang_identifier"),
  ):
      self.data_dir = utils.to_path(data_dir)
      self.version = version
      self._model = None
      self._classes = None
      self._label_prefix = "__label__"
  
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 1 to create a new LangIdentifier object  with example: obj = LangIdentifier(version, data_dir)