SYMBOL INDEX (50 symbols across 10 files) FILE: dl_translate/_translation_model.py function _select_device (line 13) | def _select_device(device_selection): function _resolve_lang_codes (line 27) | def _resolve_lang_codes(lang: str, name: str, model_family: str): function _resolve_tokenizer (line 53) | def _resolve_tokenizer(model_family): function _resolve_transformers_model (line 66) | def _resolve_transformers_model(model_family): class TranslationModel (line 79) | class TranslationModel: method __init__ (line 80) | def __init__( method translate (line 133) | def translate( method get_transformers_model (line 204) | def get_transformers_model(self): method get_tokenizer (line 210) | def get_tokenizer(self): method available_languages (line 216) | def available_languages(self) -> List[str]: method available_codes (line 223) | def available_codes(self) -> List[str]: method get_lang_code_map (line 230) | def get_lang_code_map(self) -> Dict[str, str]: method save_obj (line 237) | def save_obj(self, path: str = "saved_model") -> None: method load_obj (line 252) | def load_obj(cls, path: str = "saved_model", **kwargs): FILE: dl_translate/utils.py function _infer_model_family (line 6) | def _infer_model_family(model_or_path): function _infer_model_or_path (line 24) | def _infer_model_or_path(model_or_path): function _weights2pairs (line 40) | def _weights2pairs(): function _dict_from_weights (line 63) | def _dict_from_weights(weights: str) -> dict: function get_lang_code_map (line 85) | def get_lang_code_map(weights: str = "m2m100") -> Dict[str, str]: function available_languages (line 95) | def available_languages(weights: str = "m2m100") -> List[str]: function available_codes (line 105) | def available_codes(weights: str = "m2m100") -> List[str]: FILE: scripts/generate_langs.py function name_to_var (line 5) | def name_to_var(lang_name): function load_json (line 16) | def load_json(name): FILE: scripts/render_available_langs.py function load_json (line 7) | def load_json(name): FILE: scripts/render_references.py function preprocess_annot (line 23) | def preprocess_annot(annotation): function preprocess_default (line 29) | def preprocess_default(default): class FunctionReference (line 34) | class FunctionReference: method __init__ (line 35) | def __init__(self, function, modname=None): method name (line 46) | def name(self): method signature (line 50) | def signature(self): method sig_desc (line 54) | def sig_desc(self): method doc (line 58) | def doc(self): class ModuleReferences (line 72) | class ModuleReferences(NamedTuple): FILE: tests/long/test_save_load.py function test_save (line 6) | def test_save(): function test_load (line 13) | def test_load(): FILE: tests/long/test_translate.py function test_translate (line 4) | def test_translate(): function test_mbart50 (line 22) | def test_mbart50(): FILE: tests/quick/test_lang.py function test_lang (line 5) | def test_lang(): function test_lang_m2m100 (line 10) | def test_lang_m2m100(): function test_lang_mbart50 (line 15) | def test_lang_mbart50(): FILE: tests/quick/test_translation_model.py function test_resolve_lang_codes_mbart50 (line 13) | def test_resolve_lang_codes_mbart50(): function test_resolve_lang_codes_m2m100 (line 24) | def test_resolve_lang_codes_m2m100(): function test_resolve_lang_codes_m2m100 (line 35) | def test_resolve_lang_codes_m2m100(): function test_select_device (line 54) | def test_select_device(): function test_infer_model_or_path (line 65) | def test_infer_model_or_path(): function test_infer_model_family (line 74) | def test_infer_model_family(): FILE: tests/quick/test_utils.py function test_dict_from_weights (line 7) | def test_dict_from_weights(): function test_dict_from_weights_exception (line 29) | def test_dict_from_weights_exception(): function test_available_languages (line 34) | def test_available_languages(): function test_available_codes (line 53) | def test_available_codes():