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.Generic
A
Config
represents an entire subdict in a configuration file. If it corresponds to a named subclass of a registrable class, it will also contain atype
item in addition to whatever items are required by the subclassfrom_params
method.
-
class
allennlp.common.configuration.
ConfigItem
[source]¶ Bases:
tuple
Each
ConfigItem
represents 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]¶