Update docs [ci skip]
@@ -38,6 +38,10 @@ class PyTT_Language(Language):
def __init__(
self, vocab=True, make_doc=True, max_length=10 ** 6, meta={}, **kwargs
):
+ """Initialize the language class. Expects either a pytt_name setting in
+ the meta or as a keyword argument, specifying the pre-trained model
+ name. This is used to set up the model-specific tokenizer.
+ """
meta = dict(meta)
meta["lang_factory"] = self.lang_factory_name
pytt_name = kwargs.get("pytt_name", meta.get("pytt_name"))
