allennlp.common.configuration¶
Tools for programmatically generating config files for AllenNLP models.
-
class
allennlp.common.configuration.Config(items: List[allennlp.common.configuration.ConfigItem], typ3: str = None)[source]¶ Bases:
typing.GenericA
Configrepresents an entire subdict in a configuration file. If it corresponds to a named subclass of a registrable class, it will also contain atypeitem in addition to whatever items are required by the subclassfrom_paramsmethod.
-
class
allennlp.common.configuration.ConfigItem[source]¶ Bases:
tupleEach
ConfigItemrepresents a single entry in a configuration JsonDict.-
property
annotation¶ Alias for field number 1
-
property
comment¶ Alias for field number 3
-
property
default_value¶ Alias for field number 2
-
property
name¶ Alias for field number 0
-
property
-
allennlp.common.configuration.configure(full_path: str = '') → allennlp.common.configuration.Config[source]¶