MCPcopy Create free account
hub / github.com/OpenNMT/CTranslate2 / __init__

Method __init__

python/ctranslate2/specs/model_spec.py:581–584  ·  view source on GitHub ↗

Initializes a language model specification.

(self)

Source from the content-addressed store, hash-verified

579 """Base specification for language models."""
580
581 def __init__(self):
582 """Initializes a language model specification."""
583 super().__init__()
584 self._vocabulary = []
585
586 def get_default_config(self):
587 return LanguageModelConfig()

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected